Conditional Tokens

Navigation:  Tokens >

Conditional Tokens

Previous pageReturn to chapter overviewNext page

Conditional tokens test a condition (or a series of conditions), and replace the token by different text/tokens depending on whether the condition(s) is/are all true or not.

 

The general structure of conditional tokens is:

 

[?Condition1|Condition2|...|TrueText|FalseText]

 

Where:

 

Condition1

Condition2

...

These are one or more conditions which must all be true 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(s) is/are all true or not.

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

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

You can use the marker text ZapLayer to delete all the objects on the same page and same layer as the textbox containing the current Conditional Token.

You can use the marker ZapPage to delete the page (the entire page, not just the objects on it) containing the textbox containing current Conditional Token (for testing testing/debugging purposes, you can use the Keep Pages diary generation option to delete all objects on the page, and leave a marker that the page is to be deleted, instead of deleting the actual page).

 

The LanguageTag and DayValue (if present) are placed to the left of the question mark (?).

 

Usually, the token(s) that are part of the condition(s) have no LanguageTag or DayValue as the LanguageTag and DayValue in front of the ? question mark are assumed to apply to the condition(s).

 

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 26-Jan-2019.
Topic URL: https://www.qppstudio.net/webhelp_xv4/index.html?conditionaltokens.htm