IsDefined

Determine whether a given variable reference exists.

For example:

  • isDefined( "luis" ) will test for the existence of an lmajano variable in any accessible scope.

  • isDefined( "variables.foo" ) will test for the existence of a foo variable in the variables scope.

  • isDefined( "brad.age" ) will test for the existence of an age key in the brad struct, in any accessible scope

Method Signature

IsDefined(variable=[string])

Arguments

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.

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC