Creating a variable

Every project 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:

  1. 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.

  2. Click the Add button. The new variable is added to the list.

  3. Use the controls within the Variable Information box to specify the following:

  4. 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 project is launched.

    Retain variable value between sessions

    Select this to retain the variable's value through subsequent launches of the published project. With this selected, if the variable value has changed, the next time the user launches the published project, 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 project 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.

  5. Click OK to create the new variable.

Knowledge Base | Training | Support
© Copyright ELB Learning 2023