About Language Variables

A variable is a storage location and has an associated type, sometimes called its parse-time type, which is either a primitive type or a reference type. A variable always contains a value that is assignment compatible with its type. A variable's value is changed by an assignment or by a prefix or postfix

++ (increment) or --
(decrement) operator.

Compatibility of the value of a variable with its type is guaranteed by the Expression Language. Default values are compatible and all assignments to a variable are checked for assignment compatibility usually at parse time, but, in a single case involving arrays, a run-time check is made.

See also:

  • “The Variable Pane” in the Cisco Unified CCX Scripting and Development Series: Volume 1, Getting Started with Scripts for how to use script variables.

  • “How and When To Configure the Encoding and Decoding of Variable Types” in the Cisco Unified CCX Scripting and Development Series: Volume 1, Getting Started with Scripts for how variables of different data types are converted to the appropriate system type when transferred between systems in an enterprise configuration.