Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
BASIC Operators
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
CodeView BASIC expressions can contain numeric operations. Expressions
containing operations on strings are not supported. CodeView also cannot
evaluate expressions containing the BASIC exponentiation operator (^).
For all other BASIC operators, the order of precedence is the same as
used in the BASIC language:
1. Arithmetic Operations
a. Negation (-)
b. Multiplication and division (*, /)
c. Integer division (\)
d. Modulo arithmetic (MOD)
e. Addition and subtraction (+, -)
2. Relational Operations (=, >, <, <>, <=, >=)
3. Logical Operations
a. NOT
b. AND
c. OR
d. XOR
e. EQV
f. IMP
4. Assignment (?LET =), CodeView Command window only
Relational operators return true (nonzero) or false (zero) when used
in the Command or Watch windows.
In addition to the standard BASIC operators, CodeView uses the BASIC
LET statement in combination with the assignment operator (=) to assign
values to numeric data elements from the Command window. You must
precede LET with the CodeView expression evaluation command (?).
For example:
?LET A%=37
This example assigns 37 to the variable A%. Without LET, CodeView
interprets the expression as a test for equality and will return true
(nonzero) or false (zero).
-♦-