Skip to main content

Undefined

Synopsis

[Miscellaneous]    Undefined=n

Description

Specifies how ObjectScript reacts when it attempts to fetch the value of a variable that has not been defined. The value of Undefined may be 0, 1, or 2:

  • 0 - Throw an <UNDEFINED> error. (default)

  • 1 - If the undefined variable has subscripts, return a null string, but if the undefined variable is single-valued, throw an <UNDEFINED> error.

  • 2 - Always return a null string.

Examples

Undefined=0

Range of Values

The value of Undefined may be 0, 1, or 2.

Management Portal

On the Compatibility Settings page (System Administration > Configuration > Additional Settings > Compatibility), in the Undefined row, select Edit. Choose true (selected) or false (cleared).

FeedbackOpens in a new tab