<cfelse>

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>

<cfelse>

This tag does not use any attributes.

Examples

Simple Example with tag format

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

Simple example with script format

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

See also