if

Description

This function evaluates the expression condition , and returns the value of trueReturn or falseReturn depending on the boolean value of condition .

Syntax

if( condition, trueReturn, falseReturn )

Examples
 if(1, "Yes", "No") //would return "Yes"
 if(0, "Yes", "No") //would return "No"
 if({Root Container.CheckBox.selected}, "Selected", "Not Selected") //would return the a description of the state of the checkbox