Zap Tokens

Navigation:  Tokens >

Zap Tokens

Previous pageReturn to chapter overviewNext page

A zap token tells Q++ to delete the current textbox if a certain condition is true.

 

An example would be [a1zd=22] which means zap the current textbox if the value of the token [d] is equal to 22. In that example, the ZapPrefix is 'z' and the ZapCondition is 'd=22'.

 

The overall structure of the TokenRoot of a zap token is:

 

[ ZapPrefix ZapCondition ]

 

An example would be [a1zd=22] which means zap the current textbox if the value of the token [d] is equal to 22. In that example, the ZapPrefix is 'z' and the ZapCondition is 'd=22'.

 

ZapPrefix

This is always the letter 'z'.

 

If the ZapPrefix is 'z' then only the current textbox will be deleted if the ZapCondition is true.

If the ZapPrefix is 'Z' then any object grouped to the current textbox will also be deleted if the ZapCondition is true.

ZapCondition

This is any valid condition, as defined in Conditional Tokens.

 

Zap tokens can also be combined with Conditional Tokens to delete textboxes based on multiple conditions.

 

Note that Zap Tokens are a special case of Conditional Tokens. For example, we could rewrite the zap token [a1zd=22] as [a1?d=22|zap|].


Topic 180976 updated on 05-Aug-17.
Topic URL: https://www.qppstudio.net/webhelp/index.html?zaptoken.htm