rtex-engine/docs/instructions/base/set.md

580 B

set

Sets aor overwrites a variable in the environment.

Parameters

  • name (string) - The name of the variable to get.
  • value (any) - The value to set.

Return

(null) - Nothing.

Exceptions

  • EvaluationException - If there was an error while evaluating one or more parameters.
  • TypeException - If one or more parameters are not of the expected type.

Instruction Example

{
  "type": "set",
  "_": {
    "name": "foo",
    "value": "bar"
  }
}

Last Updated

Monday, December 29th, 2022. Written by Netkas