Var Op

This operation sets or returns a variable.

Definition: ["var", <name: expression(string), string> [, <value: expression(any)>]]

Usage

Request:

["sequence",
  ["var", "test", ["value", 55]],
  ["var", "test"]
]

Response:

55

Typical Usage

This operation is typically used together in sequence operator in order to store a state during a request so that it can be used as a value in one of the other operations in a sequence.

Using it alone in a request will not have any visible effect.