You can add a variable from any script page. When you add a new variable, you select its type and optionally assign a default value.

  1. To open the list of variables known to the script, click the Variables tab. 

    Figure shows contents of the variables tab.

  2. Click Add Variable .

    Figure shows button that adds a new variable.

  3. Choose the type of value that the variable will store.

  4. Enter the variable name, description, and its default value.

  5. String, number, and true/false variables have input and output properties that determine how data is shared outside of the script. For information about these properties, see Input and output variables.

    1. Optionally enable the Output property to indicate that its value should be saved for use outside of the script. The variable is an output variable because its value is output to external storage when the script executes.

    2. Optionally enable the Input property to indicate that its value can be assigned from an external source, such as an Architect call flow. The variable is an input variable because its value is input from an external source.

  6. Click Apply.