#CONSTANT

You can use this command to define constants within your program.

  Syntax
#CONSTANT ConstantName ConstantValue
  Parameters
ConstantName ConstantValue
Integer
A value between 0 and 2415919103.

  Returns

This command does not return a value.

  Description

Constants are special tokens that can be defined to hold a fixed value or string. You can use the constants anywhere in your program to specify items of data that are not going to change throughout your programs execution. Constants can be used to increase performance of your programs and make your code easier to read. Beware that using constant names that match reserved words like PRINT and WAIT will cause your program to change radically and should be avoided.

  Example Code
#CONSTANT pie 3.142
PRINT pie
WAIT KEY
  See also

CORE Commands Menu
Index