Syntax
Switch(value, case…)
Parameters
| Parameter | Type | Details |
|---|---|---|
value | any value | required |
case | any value | required, repeatable |
Returns
any value
Example
Switch($status, "Draft", 1, "Sent", 2, 0)SwitchRuns the result of the first case equal to the value; a last lone argument is the default.