<!--- This example shows IIf --->

<HTML>

<HEAD>
<TITLE>
IIf Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>IIf Function</H3>

<P>IIf evaluates a condition, then performs an Evaluate on 
string expression 1 or string expression 2 depending on the 
Boolean outcome <I>(TRUE = run expression 1; FALSE = run
expression 2)</I>.

<P>The result of the expression IIf( Hour(Now()) GT 12, DE("It is afternoon or evening"), DE("It is morning"))
is:<BR>
<CFOUTPUT>
#IIf( Hour(Now()) GT 12, DE("It is afternoon or evening"), DE("It is morning"))#
</CFOUTPUT>


</BODY>

</HTML>       
