English
Language : 

NSB8 Datasheet, PDF (85/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
ITALIAN TECHNOLOGY
OPERATOR
>
<
<=
>=
=
<>
grifo®
RELATION
greater than
less than
less than or equal to
greater than or equal to
equal to
not equal to
EXAMPLES
(6>1)=1 (true)
(2>3)=0 (false)
(0<0)=0 (false)
(1<3)=1 (true)
(5<=5)=1
(3<=5)=1
(6<=5)=0
(8>=7)=1
(7>=7)=1
(6>=7)=0
(9=9)=1
(9=7)=0
(4<>5)=1
(2<>2)=0
BOOLEAN OPERATORS
The boolean operators (AND, OR and NOT) may be used to combine or otherwise modify relational
(true/false) expressions so as to provide for complex logical evaluation. Furthermore, any numeric
values may be the objects of a boolean operation: all non zero values will be treated as true, while
0 will be treated as false. The result of a boolean operation is either true or false. The table below
summarizes the effects of the boolean operators. <A1> and <A2> stand for operands.
OPERATOR
<A1> AND <A2>
EXPLANATION
If both <A1> and <A2>
are true (non zero), the
AND operation is true
(1), else it is false (0).
EXAMPLES
(3>5 AND 2<3)=0
(3>2 AND 0<=0)=1
(2=3 AND 0>-1)=0
<A1> OR <A2>
If at least one argument is
true, then the OR operation
is true. If both are false,
the OR is false.
(3>5 OR 2<3)=1
(3>2 OR 0<=0)=1
(2=3 OR 0<-1)=0
NOT <A1>
Negates the boolean value
of the argument. If <A1>
is non zero (true), the
NOT operation is false. If
<A1>=0 then NOT <A1>
is true.
NOT 7=0
NOT 0=1
NOT (3>5)=1
NOT (3<5)=0
NSB8
Rel. 5.10
Page 73