Please enable JavaScript to view this site.

 

Navigation: » No topics above this level «

Zap Tokens

Scroll Prev Up Next More

A zap token tells Q++Studio to delete the current textbox if a certain condition is true. The overall structure of the TokenRoot of a zap token is thus:

 

[ ZapPrefix ZapCondition ]

 

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.

 

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

 

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|]

 

The LanguageTag and DayValue (if present) are placed to the left of the ZapPrefix. The AnyToken that is part of the condition has no LanguageTag or DayValue; Q++Studio uses those of the zap token.

 


Topic 000127, last updated on 14-Apr-2020