home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / iif.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  610 b   |  30 lines

  1. <!--- This example shows IIf --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>
  7. IIf Example
  8. </TITLE>
  9. </HEAD>
  10.  
  11. <BODY bgcolor=silver>
  12.  
  13. <H3>IIf Function</H3>
  14.  
  15. <P>IIf evaluates a condition, then performs an Evaluate on 
  16. string expression 1 or string expression 2 depending on the 
  17. Boolean outcome <I>(TRUE = run expression 1; FALSE = run
  18. expression 2)</I>.
  19.  
  20. <P>The result of the expression IIf( Hour(Now()) GT 12, DE("It is afternoon or evening"), DE("It is morning"))
  21. is:<BR>
  22. <CFOUTPUT>
  23. #IIf( Hour(Now()) GT 12, DE("It is afternoon or evening"), DE("It is morning"))#
  24. </CFOUTPUT>
  25.  
  26.  
  27. </BODY>
  28.  
  29. </HTML>       
  30.