Determine whether a given variable reference exists.
For example:
-
isDefined( "luis" )
will test for the existence of anlmajano
variable in any accessible scope. -
isDefined( "variables.foo" )
will test for the existence of afoo
variable in thevariables
scope. -
isDefined( "brad.age" )
will test for the existence of anage
key in thebrad
struct, in any accessible scope
IsDefined(variable=[string])
Argument | Type | Required | Description | Default |
---|---|---|---|---|
variable |
string |
true |
The variable reference to test for existence. For security reasons, only dot-notation is supported. Struct/array bracket notation is not supported, nor is function invocation, etc. |
- ArrayIsEmpty
- Attempt
- IsArray
- IsBinary
- IsBoolean
- IsClosure
- IsCustomFunction
- IsDate
- IsDateObject
- IsDebugMode
- IsEmpty
- IsFileObject
- IsIPv6
- IsJSON
- IsLeapYear
- IsLocalHost
- IsNull
- IsNumeric
- IsNumericDate
- IsObject
- IsQuery
- IsSimpleValue
- IsStruct
- IsValid
- IsXML
- IsXmlAttribute
- IsXMLDoc
- IsXMLElem
- IsXMLNode
- IsXMLRoot
- LSIsNumeric
- structIsEmpty