Constants
Description
Constants are numbers which cannot be changed after they are defined. For example, 5 will always mean the same number. In ARMbasic, variable names can be told to be constants by defining them with the CONST command. Such constants are then available globally, meaning that once defined, you can use the word to refer to a constant anywhere in your program. After being defined with the CONST command, constants cannot be altered. If code tries to alter a constant, an error message will result upon code compilation.
Example
CONST FirstNumber = 1
CONST SecondNumber = 2
PRINT FirstNumber, SecondNumber 'This will print 1 2