|
|
Returns one value if the specified condition evaluates to true, or another value if it evaluates to false.
Syntax
| Smartsite SXML |
|
|---|---|
any sys.iif(any expression, any thenData) any sys.iif(any expression, any thenData, any elseData) |
|
Parameters
| Name | Data Type | Description |
|---|---|---|
| expression | Any | Expression that determines the output. |
| thenData | Any | The string to return if the expression evaluates to true |
| elseData | Any | The string to return if the expression evaluates to false. |
Return Value
| Data Type | Description |
|---|---|
| Any | The data specified as "thenData" when "expression" is set to true, otherwise, if it is specified, the "elseData". |