API Docs for:
Show:

ControlVariables Class

Stores the variables used in step evaluators

Methods

clear

()

Clear the control variables collection

get

(
  • name
)
Any

Gets a variable value

Parameters:

  • name String

    The variable name

Returns:

Any:

The variable value

getNameValuePair

(
  • name
)
Object

Gets a pair with name and value

Parameters:

  • name String

    The variable name

Returns:

Object:

A pair with the variable name and value

isDefined

(
  • name
)
Boolean

Checks if some variable is already defined

Parameters:

  • name String

    The variable name

Returns:

Boolean:

A boolean indicating if the variable is already defined

remove

(
  • name
)
Object

Remove some variable from the control variables collection

Parameters:

  • name String

    The variable name

Returns:

Object:

A pair with the removed variable name and value

set

(
  • name
  • value
)
String

Sets a variable value

Parameters:

  • name String

    The variable name

  • value String

    The variable value

Returns:

String:

A formatted key=value pair representing the defined variable

setIfUndefined

(
  • name
  • value
)
String

Sets a variable if not defined yet

Parameters:

  • name String

    The variable name

  • value String

    The variable value

Returns:

String:

A formatted key=value pair representing the defined variable