Else If

Description

The Else If command, in addition to Else, is used together with the If command. It enables you to make statements to change the robot's behavior based on sensor inputs or variable values.

The Else If node is only insertable directly after an If or Else node.

The children of this node are only executed if the preceding If or Else If node is False, but its expression evaluates it as True.

 

To access Else If command

  1. Go to the main program screen. See Command Nodes.

  2. Tap the If icon in the Commands toolbox.

    Follow the process when accessing the If program. See If for more.

    An Expression field and two add icons are inserted into the program tree:

    • Add icon in the If child node

    • Add icon for another node

  3. Tap the second add icon.

    The Commands toolbox appear.

  4. Tap the Else If icon in the Commands toolbox.

 

  1. The Else If node is inserted into the program tree.

    The node has an editable Expression field and two add icons.

  2. Tap the Expression field.

  3. Create your expression .

  4. Tap Confirm.

  5. Choose and tap the appropriate add icon to access other commands for the robot movement.