$switch
$switch
will select and execute an action based on matching a value to predefined cases.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
value | string | The value to compare against cases. | true |
case | string | Contains cases in the format {case:<comparisonValue>:<awaitedCmd>} , where comparisonValue can be a specific value. If none of the cases match, use {case:default:<awaitedCmd>} to handle the default behavior. | true |