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, string_expression1, string_expression2 )

Returns: any

Argument Description
condition
boolean, required

An expression that can be evaluated as a Boolean.

string_expression1
string, required

Expression to evaluate and return if condition is true.

Alias: expression1

string_expression2
string, required

Expression to evaluate and return if condition is false.

Alias: expression2

Examples

There are currently no examples for this function.

See also