If

Description

The If command changes the robot’s behavior based on sensor inputs or variable values. It allows you to control the flow of your program.

 

To access If command

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

  2. Tap the If icon in the Commands toolbox.

    A node is inserted into the program tree, which has an editable field.

     

  3. Tap the Expression field.

    The children of the If node will only be executed if the expression evaluates to True.

  4. Enter your expression and Confirm.