SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
The DO keyword

This keyword is used to declare single-line commands. It can be used with WHILE and FOR-family commands. Example:
FOR f IN files("*.txt") DO PRINT f
...
WHILE i < 4 DO i ++
Also, it can be used by IF command (instead of THEN), but is not suggested.


[Prev] [Next]