You can combine zap tokens to obtain compound conditions, such as delete if X or Y and delete if X and Y.
OR (any of the Zap conditions is true) |
To delete a text box if one condition or the other is true, simply place 2 zap tokens in the same textbox.
[1zd#=6][1zd#=7]
The above combination of tokens will delete the current textbox if the token's date corresponds to either a Saturday or a Sunday. |
AND (all of the Zap conditions are true) |
To delete a textbox if one condition and the other is true, you should use multiple Zap conditions, such as in the token:
[1Z|33d>15|3d~1]
where the above is equivalent to checking if both [33Zd>15] and [3Zd~1] produce a Zap result.
➢In the example above, the letter "Z" could have been replaced by any of the available zap prefixes.
Sometimes the more general conditional token is a better alternative to multiple conditions zap tokens, as conditional tokens have the advantage that you can specify both a true and a false result, including the possibility of zapping when the condition is false, which some users find more intuitive that zapping if the zap condition is true. |
See also: zap tokens, conditional tokens.
Topic 174340, last updated on 18-Sep-2024