Inside Coldfusion MX
IIf (condition, string_expression1, string_expression2) Description
Evaluates a Boolean condition expression. Depending on whether the expression is true or false, it dynamically evaluates one of two string expressions and returns the result. This function is convenient for incorporating a cfif tag inline in HTML. Example
<cfoutput> #IIf(Month(Now()) GTE 6, DE("It's not spring"), DE("It might be spring"))# </cfoutput> |