23
Chapter 3 Basics of the CipherLab BASIC Language
The precedence of BASIC operators affects the evaluation of operands in expressions.
Expressions with higher precedence operators are evaluated first. The precedence of
BASIC operators is listed below in the order of precedence from highest to lowest. Where
several operators appear together, they have equal precedence.
Highest Arithmetic – Exponentiation
Arithmetic – Multiplication, Division, Modulo
*, \, /, MOD
Arithmetic – Addition, Subtraction
Relational
Logical
AND, NOT, OR, XOR
Lowest Assignment
Line labels are used to represent some special lines in the BASIC program. They can be
either integer numbers or character strings.
A valid integer number for the line label is in the range of 1 to 32,767.
A character string label can have up to 49 characters. (If the string label has more
than 49 characters, it will be truncated to 49 characters long.)
The maximum number of labels is 1,000.
Note: The maximum compilable lines are 12,000. (trial version: 1,000 lines)
A character string label that precedes a program line must have a colon “:” between the
label and the program line, but it is not necessary for an integer label. For example,
GOTO 100
…
100 PRINT “This is an integer label.”
…
GOTO Label2
…
Label2: PRINT “This is a character string label.”