Assignment operator, Arithmetic operator, Relational operator – Argox PA-20 Basic Programming Manual User Manual
Page 11: Logical operator

PT-Basic Programming Manual Ver. 1.00
10/143
2.3.1
Assignment Operator
PT-Basic interpreter supports an assignment operator “=”
For example:
Size% =100
PI! =3.1415
Str1$=”back”
2.3.2
Arithmetic Operator
The arithmetic operators are:
Operator Operation
Example
^
Exponentiation
A% = 9^6
-
Negation
A% = -B%
*
Multiplication
A% = B% * C%
/
Division
A% = B% / C%
+
Addition
A% = B% + C%
-
Subtraction
A% = B% - C%
MOD
Modulo arithmetic
A% = B% MOD C%
2.3.3
Relational Operator
Relational operators are used to compare two values. Result of the
comparison is either “True” or “False”.
Operator
Operation
Example
=
Equality
A% = B%
<>
Inequality
A%<> B%
>
Greater than
A% > B%
<
Less than
A%< B%
>=
Greater than or equal to
A% >= B%
<=
Less than or equal to
A% <= B%
2.3.4
Logical Operator
Logical operators perform tests on multiple relations and Boolean
operations. Logical operator returns a result which is either
“True” (not zero) or “False” (zero). In an expression, logical
operations are performed after arithmetic and relational
operations.