Zap tokens are a special case of conditional tokens, and delete the textbox containing the zap token, if a certain condition is true, or a series of conditions are all true.
Single Condition
The structure of a single condition zap token is:
[ZapPrefix Condition]
For example, the token [a1zd=22] means delete the current textbox if the value of the token [a1d] is equal to 22. In that example, the ZapPrefix is 'z' and the Condition is 'd=22'.
Multiple Conditions
The structure of a multiple conditions zap token is:
[ZapPrefix|Condition1|Condition2|...]
For example, the token [a1z|d=25|m=12] means delete the current textbox if the value of the token [a1d] is equal to 25 and the value of the token [a1m] is equal to 12 (ie. Christmas Day). In that example, the ZapPrefix is 'z', Condition1 is 'd=25' and Condition2 is 'm=12'.
Zap Prefixes and Conditions
The available Zap Prefixes and Conditions are detailed in the table below.
The zap prefix is one of the following: 'z', 'Z', 'ZL', 'ZP'.
QuarkXPress Limitations
The use of the delete layer or delete page zap tokens requires QuarkXPress 2016-2026 (or any version of InDesign).
When a Delete Box zap token is located anywhere inside an InDesign table, its effect is to delete the entire table object in which the zap token is located.
The effect of a Delete Group zap token, located anywhere inside an InDesign table, is to delete the parent textbox of the table in which that zap token is located. |
|||||||||
Condition(s) |
This is any valid condition, as defined in conditional tokens (remember that conditions can include tokens).
Multiple Conditions
Multiple conditions, separated by a pipe sign, may be used to zap if all the conditions are true.
[ ZapPrefix | Condition1 | Condition2 | ... ]
In multiple condition zap tokens, the first pipe sign "|" must occur immediately after the z, Z, ZL or ZP prefix, and there should be no pipe sign at the end.
Examples of Multiple Conditions
The token [a1z|d=22|d#=3] means zap the current textbox if the value of the token [a1d] is equal to 22 and the value of [a1d#] equals 3 (ie. when the date is Wednesday the 22nd).
To zap if any of the conditions are true, use separate zap tokens.
Returning to the above example, using the 2 separate tokens [a1zd=22][a1zd#=3] means zap the current textbox if the value of the token [a1d] is equal to 22 or the value of [a1d#] equals 3 (ie. when the date is either a Wednesday or the 22nd of the month, or both). |
See also: deleting layers, deleting pages.
Topic 180976, last updated on 19-Oct-2026