Please enable JavaScript to view this site.

 

Navigation: Tokens

Conditional Tokens

Scroll Prev Up Next More

Conditional tokens test a condition, and replace the token by different text/tokens depending on whether the condition is true or not.

 

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

 

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 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, last updated on 09-Nov-2023