Using the If Statements

  1. In the Basic Blocks palette or toolbar, click the If Then or If Then Else button to load the mouse cursor with the respective block.

    You can use the options in the Kind context menu of an If...* block to change its type.

  2. Place the block in the drawing area.

    The If Then block and the If Then Else block look nearly alike, except that If Then Else has two control flow branches.

  3. Connect the input to a logical element.

  4. Specify the actions for the branches.

  5. Right-click the sequence call you want to connect to a branch, and select Connector from the context menu.

    The sequence call becomes a connector. The colored line of an unresolved sequencing changes to black.

  6. Connect the desired branch to the connector.

    You can connect a branch to more than one actions. In that case, edit the connector numbers (according to Editing a Sequence Call in the Sequence Editor). As for sequence calls, each number must be unique.

  7. Repeat these actions for the second branch of the If Then block.

See also

Editing a Sequence Call in the Sequence Editor

Using the Switch

Using the While Loop