Conditional Tokens

Navigation:  Tokens >

Conditional Tokens

Previous pageReturn to chapter overviewNext page

Conditional tokens let you test a condition, and replace the token by different text (even a token) depending on whether the condition is true. The general structure of conditional tokens is :

 

[ ? Condition | TrueText | FalseText ]

 

Where:

 

Condition

This is a logical condition that determines if the text which replaces the token is to be TrueText. Otherwise it is replaced by FalseText.

TrueText and FalseText

Used as replacement for the token depending if the Condition is true or false.

You can use tokens, but the braces [] must be replaced by underscores.

You can also use the text zap and ZAP to delete the textbox or the textbox and any grouped objects.

 

The LanguageTag and DayValue (if present) are placed to the left of the question mark (?) and, normally, the token(s) that are part of the condition have no LanguageTag or DayValue as the LanguageTag and DayValue in front of the ? question mark are assumed to apply to the condition.

 

A special case of Conditional Tokens is zap tokens.

 

See also: The Structure of Conditions, Evaluating Conditions, Using Tokens on the Right Side.

 


Topic 173240 updated on 08-Aug-17.
Topic URL: https://www.qppstudio.net/webhelp/index.html?conditionaltokens.htm