Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Control Structures tab (on the Conversational tab) offers a convenient way to control the flow of robot programs using conditional statements (like “If/Else”) and loops.

If/Then/Else

The if..else statement evaluates a test expression and only executes a part of the program when the test condition is True. If the condition is False, the body of else is executed.

For more information on “if/else” statements in Python, refer to https://www.learnpython.org/en/Conditions.

...

Enter the expression to be evaluated into the text box.

Loop

A loop is a programming structure that repeats a sequence of instruction until a specific condition is met. For more information on loops in Python, refer to https://www.learnpython.org/en/Loops.

...

You can program “while” loops or “for” loops from the Loop tab. When programming a “while” loop, enter the expression to be evaluated into the text box.