Skip to content

$ternary

Executes a ternary statement.

Parameters

NameDescriptionEnforcedDefault Value
ExpressionThe expression to be evaluated.YesNone
ThenThe code to be execute if the condition is met.YesNone
ElseThe code to be execute if the condition is not met.NoNone

Example

$ternary[expression;then;else?]

Function Aliases

  • $if