LassoScript Utility
Basics Browse Detail

[If_True]

Tag Link [If_True] Category Conditional
Type Substitution Source Available Yes
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Description

[If_True] requires three parameters. If the first parameter is equal to True then the second parameter is returned otherwise the third parameter is returned. [If_True] can be used in place of traditional [If] ... [/If] tags, but inline within an expression.

Syntax

[If_True: Condition, True_Value, False_Value]

Parameters

Required Parameters
Expression The conditional expression to be checked.
Value The value to be returned if the expression is true.
Value The value to be returned if the expression is false.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Related Tags

Category Tags