Evaluates a true false expression, and returns a parameter value if the expression is true and another if the expression is false.

Usage:

IIf( e, t, f )

Parameters:

e - An expression or value to be evaluated to true or false.
t - Defines what to return if the evaluation of expression e is true.
f - Defines what to return if the evaluation of expression e is false.

Example:

IIf(IsEqual(0, 1 - 1), "Values are equal!", "Values are unequal!")

Related Articles

bit in line if iif istrue false true