Ternary

Parent Previous Next

Ternary


A ternary expression returns the first content item if the predicate evaluates to true, or the second content item if the predicate evaluates to false.


Syntax


Predicate ? (<content item>) : (<content item>)



Arguments

Predicate - Any predicate, used to determine which content item to include.


Examples


Lookup('LocaleIDs', @PropertyValue('Language');