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 – variable’s starting value.
Do not reset If this property is checked, then the Reset button will NOT affect the Variable Storage module.

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 module, a new variable will be created. Its start value will be false.

Scoring

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

Events

The Variable Storage does not send any events to the Event Bus.

Demo presentation

Demo presentation showing how to use the Variable Storage module.