Note that the Set Variable action in the scenario editor is a variant of the Modify action. You can use the Set Variable action to define a value that you can use, for example, to trigger an action later in the same scenario segment (scenario variables apply only to the segment in which you set them).


Set variable LateNightShopper to Yes

The following example from an SDL file shows a Set Variable action that creates a variable called LateNightShopper and sets it to the value VeryLate.

<action-name construct="variable-declaration-action">modify</action-name>
      <action-param name="modified">
        <variable type="java.lang.String">LateNightShopper</variable>
      <action-param name="operator">
      <action-param name="modifier">

Scenario variables can be any of the following types:

loading table of contents...