Used with <cfif>and <cfelseif>, <cfelse> lets you create simple and compound conditional statements in CFML.

This tag cannot have a body.

This tag is also supported within <cfscript>


This tag does not use any attributes.


Simple Example with tag format

<cfif isArray(SERVER)>
	<cfset result="It is in Array format">
	<cfset result="It is not in Array format">
<cfdump var="#result#" />

Simple example with script format

//script format
	if(numb gt 1){
		writeOutput("It is greater than 1 ");
		writeOutput("It is not greater than 1 ");

See also