Control Structures Tab Reference
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 Conditions - Learn Python - Free Interactive Python Tutorial.
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 Loops - Learn Python - Free Interactive Python Tutorial.
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.