CFIF

Lets you create simple and compound conditional statements in CFML. The value in the CFIF tag can be any expression.

Examples

Simple Boolean conditions:

<CFIF expression>
   HTML and CFML tags
<CFELSE>
   HTML and CFML tags
</CFIF>

Compound Boolean conditions:

<CFIF (expression OR
      expression ) AND
      expression >
   HTML and CFML tags
<CFELSEIF expression >
   HTML and CFML tags
<CFELSE>
   HTML and CFML tags
</CFIF>

For more information about expressions, refer to Chapter 1, "Cold Fusion Examples."