Control Structures

const

Supported By

Syntax

const constantName = constantValue

Description

The const statement creates a new user-defined constant with the specified name and value.

Note

Attempting to create a new user-defined constant with the name of an existing constant (including constants previously defined with const) has no effect. No script error is triggered, and the constant maintains its previously defined value. This may change in a future version of OpenXION.

See Also

ordinal