Used with cfelse and cfelseif, cfif lets you create simple and compound conditional statements in CFML. The value in the cfif tag can be any expression.

This tag must have a body.

This tag is also supported within <cfscript>

Attribute Description
boolean, optional

condition o the expression

<cfif #boolean condition#><!--- body ---></cfif>


Simple example

<cfif isdefined('arguments.id')>
  <!--- process provided id --->

See also