IFS
Returns the value corresponding to the first true condition. Evaluates conditions left-to-right and short-circuits.
| Category | Logical |
| Syntax | IFS(condition1, value1, [condition2, value2], ...) |
Parameters
| Parameter | Required | Description |
|---|---|---|
condition1 | Required | The first condition to evaluate. |
value1 | Required | The value to return if condition1 is true. |
condition2 | Optional | Additional condition to evaluate if previous conditions are false. |
value2 | Optional | The value to return if condition2 is true. |
Example
IFS(x > 90, "A", x > 80, "B", x > 70, "C")
Auto-generated from the EngCanvas function registry.