IIf()
Evaluates a Boolean conditional dynamic expression. Depending on whether the expression is true or false, dynamically evaluates one of two string expressions and returns the result.
IIf( condition=boolean, string_expression1=string, string_expression2=string );
Returns: any
| Argument | Description |
|---|---|
|
condition
boolean,
required
|
edit
An expression that can be evaluated as a Boolean. |
|
string_expression1
string,
required
|
edit
Expression to evaluate and return if condition is true. Alias: expression1 |
|
string_expression2
string,
required
|
edit
Expression to evaluate and return if condition is false. Alias: expression2 |
Examples
editThere are currently no examples for this function.
See also
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)