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. This returns a true value if the gun is actually fired, or a false if it was reloading. It takes slightly longer to reload after firing fused shots. A shot with a distance fuse will explode at a distance d from the robot, as long as it doesn't hit anything en-route to that location. This returns the same value as the fire function.