Checks if a variable is empty
empty(variable)
returns boolean
Name | Type | Required | Default | Description | Values | |
---|---|---|---|---|---|---|
variable | any | Yes | /Users/garethedwards/development/github/cfdocs/docs/functions/empty.md | [] |
Check whether the variable is empty or not
<cfoutput>
<cfset Language = "Coldfusion">
#empty(Language)#
<cfset MyInput = "">
#empty(MyInput)#
</cfoutput>