Conditional Tokens

Navigation:  Tokens >

Conditional Tokens

Previous pageReturn to chapter overviewNext page

Conditional tokens let you test a condition (or a series of conditions), and replace the token by different text (even a token) depending on whether the condition(s) is/are all true. 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 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 or, if you are using QuarkXPress 2016 and above, the text ZapLayer to delete all the objects on the same page and same layer as the textbox containing the current Conditional Token.

 

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(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 08-Aug-2017.
Topic URL: https://www.qppstudio.net/webhelp_xv4/index.html?conditionaltokens.htm