SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
Constants and Variables > About the dollar-symbol

The symbol '$' is supported for compatibility. Since in SmallBASIC there are no data-types its use is meaningless. The dollar in function names will be ignored The dollar in variable names will be count as part of the name (that means v and v$ are two different variables). It can be used only as the last character of the name, and only one allowed. The dollar in system variables names will be ignore it (that means COMMAND and COMMAND$ is the same) Example of variable names:
abc, a_c, _bc, ab2c, abc$ -> valid names
1cd, a$b, $abc            -> invalid names

[Up]