Please enable JavaScript to view this site.

 

Navigation: Tokens > Zap Tokens

Zaps based on multiple conditions

Scroll Prev Up Next More

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 is 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.

 

The use of multiple Zap conditions is flexible as it allows for multiple conditions, and it has 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 17-Apr-2020