The next command to learn is ifelse . This command allows conditional execution of commands, based on the value of a logical expression. The while command also takes a logical expression as a parameter. It executes a list of commands as long as the expression is true. Before you finish, you will be introduced to a final challenging concept, known as recursion.
Recursion occurs when a subroutine calls itself.
This concludes the tutorial. You may wish to go back to the examples on the rLogo Home Page and study the source for more insight into the rLogo language.