You could try something like this
The green is just a comment, which gets skipped when ran
Comments start with a single quote
The code gets ran from top to bottom
If you're completely new to programming you should read the official e-manual. You can find it here...
http://smilebasic.com/en/e-manual/10.php
If you have any other doubts after reading the manual, you can ask anything in this community! We'll try to answer as best as we can.