- INTRODUCTION
- INTRODUCTION
- ABOUT OLPC
- WHAT IS SUGAR
- HOW TO VOLUNTEER
- GETTING STARTED
- GETTING STARTED
- OPENING THE XO
- PORTS
- BATTERY CHARGING
- STARTING THE XO
- KEYBOARD
- INTERFACE
- ABOUT THE USER INTERFACE
- HOME VIEW
- ACTIVITY VIEW
- NEIGHBOURHOOD VIEW
- GROUP VIEW
- THE FRAME
- THE JOURNAL
- ACTIVITIES
- WHAT IS AN ACTIVITY
- LAUNCHING ACTIVITIES
- SWITCHING ACTIVITIES
- COLLABORATING
- EXITING ACTIVITIES
- INSTALLING ACTIVITIES
- ACTIVITY SAMPLER
- NETWORK
- GIVE ME THE INTERNET
- CONNECTING
- WIRELESS DEVICES
- NETWORKING HARDWARE
- TROUBLESHOOTING
- RECORD ACTIVITY
- INTRODUCTION
- STARTING RECORD
- PHOTOS
- VIDEO
- AUDIO
- SHARING MEDIA
- THINGS TO TRY
- WIKIMEDIA COMMONS
- BROWSE ACTIVITY
- INTRODUCTION
- WHAT IS THE WEB
- STARTING BROWSE
- BROWSE WEB
- BOOKMARKS
- CHANGING THE VIEW
- SHARING LINKS
- COUNTRY QUIZ
- SEARCH THE WEB
- USING WIKIPEDIA
- CONTRIBUTE TO WIKIPEDIA
- USING EMAIL
- WRITE ACTIVITY
- INTRODUCTION
- STARTING WRITE
- COLLABORATING
- PEER EDITING
- THE BASICS
- GROUP STORY TELLING
- LETTER TO THE EDITOR
- EMAILING A DOCUMENT
- TURTLE ART
- INTRODUCTION
- GETTING STARTED
- STARTER COMMANDS
- PEN COLORS
- PEN COMMANDS
- TRY TURTLE ART
- TURTLE ART LETTERS
- REPEATING COMMANDS
- NUMBERS AND COMMANDS
- SHAPES AND SPECTRUM
- SUPPORT
- HOW TO REFLASH
- POWERING OF YOUR LAPTOP
- REPLACING
- BACKING UP
- GETTING SUPPORT
- APPENDICES
- KEYBOARD SHORTCUTS
- PERSONALISING SUGAR
- GLOSSARY
- CREDITS

# Numbers Commands

The numbers commands allow you to perform math in your commands.

| number – specify the number you want to use in the operation. + – performs addition: 5 + 3 = 8 - – performs subtraction: 5 – 3 = 2 X – performs multiplication: 5 x 3 = 15 / – performs division: 5 / 3 = 1.67 mod – gets the remainder after division: 5 mod 3 = 2 [That is, 5 / 3 = 1 r. 2]

This is similar to the example for the repeat, but in this case we are changing the color each time it repeats. We take the current value of color (which is 0 the first time through) and add 2 to it, giving us 2 for the color on the second loop, 4 for the third and so on.

One note on the color: If you increase the color value each time then when it gets to be more than 99 it starts over again at 0.

Author : NumbersandCommands
© Anne Gentle 2008
Modifications:
adam hyde 2008
Tom Boyle 2008

License : General Public License

Produced in FLOSS Manuals (http://www.flossmanuals.net)