Variable

Implements a variable holder object.

Implements: IVariable

Description

The Variable class allows you to implement a variable holder object.

Constructors

public constructor(name: string, value?: Variant)

  • name: string - name of this variable.
  • value: Variant - value of this variable.

Properties

name

Name of the variable

public name(): string

  • returns: string - variable name.

value

Gets the variable’s value.

public value(): Variant

  • returns: Variant - variable value.

Sets the variable’s value.

public value(value: Variant)

  • value: Variant - variable’s value.