## Loops
In programming, a loop is a sequence of instructions that is continually repeated until a certain condition is reached. If you followed the tutorial on If - Then Statements you have already constructed a loop, probably without knowing it!
Open the project you created during the If-Then Statement tutorial.
![Alt text](../../images/tutorials/ifthen1.png)
As you see, we do not only have a condition **(x>2)** waiting to be true to jump to N2, but also a timeout edge that keeps our program in N1 until de condition is true. Then, we have the equivalent to
```
while(x<2)
{
Wait 1000 ms
Increment value of x
Stay in N1
}
Go to N2
```
It is important to mention that when using conditional edges, whatever command execution we havein the origin node will be executed before following the edge path.
Back to Tutorials Index...