ret = IIf(expr, true_expr, false_expr)
True(non-zero). If it is, the function returns the expression specified in
false_expris returned. It is important to note that both true and false expressions are evaluated in every case, no matter if the expression is
False. So things like
IIf(a <> 0, 5 / a, 0)will not work for
a=0because Hollywood will try evaluating
5/0which obviously does not work.