Changes

Jump to: navigation, search

Locomotive BASIC

58 bytes added, 21:25, 12 September 2012
/* FOR TO STEP NEXT */
: You have to use the command STEP if you wish to count backwards. It's good to name the ''control variable'' after NEXT for readability and better program style.
: After each loop the computer checks internaly if the ''target value'' has been reached (like an IF ... THEN ... ELSE instruction). If the target value is reached NEXT closes the loop and calculates another step, so the ''control variable'' will be changed last time.
: The default STEP value - if not specified - is one (1).
: Example:
205
edits