Elmo HARmonica Network Hardware User Manual


 
HARSFEN0602
Notation >
Description Logical greater than
Number of
arguments
2
Output type 0 or 1 (0 equals to false, 1 equals to true)
Example if x=3 and y=3 as x>y yields 0
if x=3 and y=2 as x>y yields 1
if x=1 and y=2 as x>y yields 0
4.2.4.13 Logical Greater than or equal
Notation >=
Description Logical greater than or equal
Number of
arguments
2
Output type 0 or 1 (0 equals to false, 1 equals to true)
Example if x=3 and y=3 as x>=y yields 1
if x=3 and y=2 as x>=y yields 1
if x=1 and y=2 as x>=y yields 0
4.2.4.14 Logical Less than
Notation <
Description Logical less than
Number of
arguments
2
Output type 0 or 1 (0 equals to false, 1 equals to true)
Example if x=3 and y=3 as x<y yields 0
if x=3 and y=2 as x<y yields 0
if x=1 and y=2 as x<y yields 1
4.2.4.15 Logical Greater than or equal
Notation <=
Description Logical greater than or equal
Number of
arguments
2
Output type 0 or 1 (0 equals to false, 1 equals to true)
Example if x=3 and y=3 as x<=y yields 1
if x=3 and y=2 as x<=y yields 0
if x=1 and y=2 as x<=y yields 1
4.2.4.16 Logical AND
Notation &&
Description Logical AND. The result is 1 if both arguments are nonzero, 0 if any is zero.
The arguments are not truncated to integers before evaluations
Number of
arguments
2
Output type 0 or 1
Example 1 && 5 yields 1
0.21 && 2 yields 1
0 && 2 yields 0
4.2.4.17 Logical OR