Documentation

Variable Storage

Description

This module allows adding variables that can be used in exercises and simulations.

Properties

The list starts with the common properties, learn more about them by visiting the Modules description section. The other available properties are described below.

Property name Description
Variables A list of variables.
Each of them has the following parameters:
  • Name – a name that is later used to identify the variable,
  • Start value – variable’s starting value.

Supported commands

Command name Params Description
getVariable name Returns the current value of the variable.
setVariable name,
value
Changes the current value of the variable.
reset --- Resets the variable's values to the starting ones.

If users use the command setVariable for a variable that was not defined in the addon, a new variable will be created. Its start value will be false.

Scoring

Variable storage is not an activity module, so there is no scoring present.

Events

Variable storage does not send any events to Event Bus.

Demo presentation

Demo presentation contains examples of how to use the Advanced Connector addon.