Every title has a set of reserved variables, however, you can also create your own variables. Provide a recognizable name for the variable and specify the initial value. Values can be retained between sessions, if necessary.
See also: Reserved variables
To create a variable:
Click Variable Manager from the Tools ribbon. The Variable Manager window opens. Click on the User-Defined tab if the Variable Manager window is not already opened to this tab.
Click the Add button. The new variable is added to the list.
Use the controls within the Variable Information box to specify the following:
Variable Name |
Specify the name for the variable. This name must be unique to all existing variable names. Variable names cannot contain spaces or special characters. |
Initial Value |
Specify the initial value for the variable. This is the default value of the variable when the published title is launched. |
Retain variable value between sessions |
Select this to retain the variable's value through subsequent launches of the published title. With this selected, if the variable value has changed, the next time the user launches the published title, the variable will load with the previously modified value. |
Random initial value |
Select this to assign a random integer value to a variable. When you select this option, specify the Min Value and Max Value in the fields provided. When the published title is launched, the default value of the variable will be a random number greater than or equal to the Min Value specified and less than or equal to the Max Value specified. |
Click OK to create the new variable.
© Copyright eLearning Brothers 2021