Set Variable Node

Figure 1. Set Variable Node.

Using the Set Variable nodes, you can set new values to variables. The Set Variables node consist of following parameters:

  • Variable Name: The name of the variable you want to set. You can drag the variable you want to set from the “Scriptor Tab – Variables” list to the input bar.
  • Variable Type: The type of the current variable you are setting (See also “Variable”). If the variable you are setting has not been created, it will display “(doesn’t exist)”. To create a variable, see “Scriptor Tab – Variables” in Onboarding.
  • New Value: The new value of the variable. The input must match the value type of the variable (See also “Variables” in Onboarding).
  • Randomize: Set the new value to a random number. The default value random number for numeric type variables is {random0to1}*100, which will create a random number between 1 and 100. The default value for boolean type variables is {andom0to1} > .5, which will set the variable to true or false with an equal chance. This button is not available for String type variables.