IIf Function — Microsoft.VisualBasic.Interaction
IIf(expression
,truepart
,falsepart
)
expression
required; BooleanExpression to be evaluated
truepart
required; any value or expressionExpression or value to return if
expression
is True
falsepart
required; any value or expressionExpression or value to return if
expression
is False