2.- LOGICAL ORDERS:
In programming, one of the most important parts is "checking conditions". These blocks are the easiest way to do that. We are going to explain two different instructions here. To have access to these instructions you need to click on the 3 paths icon on the green background menu. Look at the example on the right.
Let's start with the "If -->Then" block. If you use this order, the block will check the condition inside. If the condition is true, the blocks held inside it will run, and then the script will continue. If the condition is false, the code inside the block will be ignored and the script will move on.
Look at the example on the left. We are telling the script that it must repeat the same movement (move forward) until it meets the white circle. But if there is a path on the left, then it must turn left. If the condition is false (there's no path on the left) then, this order will be ignored and the red circle will continue moving forward.
Let's examine now the "If --> Then -->Else" condition on the right. If the condition set is true, the code held inside the "then" space will activate, and then the script will continue; if the condition is false, the code inside the "else" space will activate. In the example we are telling the script that if there's path ahead, then the red circle should move forward. But, if there's no path ahead, then it must turn left.

A

L