There are 3 main types of statements in the robot language. Each statement must be ended with a semicolon. An if statement is used for decision making. In order to program a counter, you can use a while loop, and a variable. For example, to count from 1 to 20, the following code will work.
Robots supports most standard math.
The table below shows the order in which operations occur, from the most important, to least important. In addition, assignment is considered an expression. Assignments always resolve last in any statement. Robots use many predefined functions, to control what their actions. A list of the currently available predefined functions is presented here.