# <cfelse>

Used with [<cfif>](if.md)and [<cfelseif>](elseif.md), [<cfelse>](else.md) lets you create simple and compound conditional statements in CFML.

This tag **cannot** have a body.
This tag is also supported within [<cfscript>](script.md)

```
<cfelse>
```

*This tag does not use any attributes.*

# Examples

### Simple Example with tag format

```cfml
<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

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








# Categories

[Core CFML Language](../../categories/core.md)

# See Also

[<cfelseif>](elseif.md), [<cfif>](if.md)