IIF (In-line If) Function

ClosedDescripción

Defines a conditional expression, as well as the expressions to execute depending on the outcome of the conditional expression.

ClosedSintaxis

IIF(ConditionalExpr, ExprIfTrue, ExprIfFalse)

Donde:

ClosedObservaciones

Only one of the two expressions (ExprIfTrue or ExprIfFalse) will get executed each time the IIF function is executed. Cualquiera de estas expresiones puede ser cualquier expresión válida de una sola línea, incluidas las funciones adicionales IIF ("anidadas").

For more detailed information on IIF function, refer to Using the In-line If (IIF) Function.

Temas relacionados