
uBasic Commands
? → | : ^ |
1 2 | 3 4 |
|
|
1(?) .......... Operator input command
2 | (→) ........ | Assign to variable command |
3 | (:) ........... | |
4 | (^) ........ | Output command |
uConditional Jump Commands
|
|
| S | = | G > > |
|
|
|
| 1 | 2 3 4 5 |
| |
|
|
|
|
| ||
1 | (S) ........ | Jump code (when condition is met) | ||||
2 | (=) .......... | Relational operator | ||||
3 | (G) ......... | Relational operator | ||||
4 | (>) .......... | Relational operator | ||||
5 | (>) .......... | Relational operator | ||||
uUnconditional Jump Commands | ||||||
|
|
|
|
| ||
|
|
| Go t o | L b l |
| |
|
|
| 1 |
| 2 |
|
1 | (Goto) .... | Jump command |
|
| ||
2 (Lbl) ....... | Label |
|
|
|
kUnconditional Jump
•When the unconditional jump command (Goto n) is executed, processing jumps to the label (Lbl n) whose n value matches the n value of the unconditional jump command. You can specify an integer from 0 to 9 for n.
•You can also use the unconditional jump command and label to create an unconditional loop, which repeat a part of the program a specific number of times. To do this, put a label (such as Lbl 1, which is used in the example below) at the beginning of the part you want to repeat, and end the repeated part with an unconditional jump command (Goto 1, in the example).