$if
Creates a condition and executes a code depending on the condition.
Usage
This function has three params.
Param | Description | Type | Required |
---|---|---|---|
condition | The condition to test, uses ComparisonSymbols. | String | Yes |
if true | The code to execute if the condition is true. | String | Yes |
if false | The code to execute if the condition is false. | String | No |
Examples
Example #1
Example #2
This example showcases how you can use $if
statement layering. $if
statement layering is using $if
statements within other $if
statements.
Last updated