LOGIC



IF

Click box to see full description


Passes the value T_VAL or F_VAL to the output, depending on COND:
.    IF (COND) OUT=T_VAL 
.    ELSE      OUT=F_VAL

IS_EVEN

Click box to see full description


If all components of A are even, 
this function returns 1, otherwise 0 is returned.

IS_ODD

Click box to see full description


If all components of A are odd, 
this function returns 1, otherwise 0 is returned.

OR

Click box to see full description


Returns the logical OR of the inputs.
If A or B are true, OUT is true, else false.
True is any non-zero number, false is 0.
A  B  OUT
---------
0  0 | 0
0  1 | 1
1  0 | 1
1  1 | 1

AND

Click box to see full description


Returns the logical AND of the inputs.
If A and B are true, OUT is true, else false.
True is any non-zero number, false is 0.
A  B  OUT
---------
0  0 | 0
0  1 | 0
1  0 | 0
1  1 | 1

NOT

Click box to see full description


Returns the logical NOT of the input.
If A is true, OUT is false. If A is false, out is true.
True is any non-zero number, false is 0.
A  OUT
------
0 | 1
1 | 0

XOR

Click box to see full description


Returns the logical XOR of the inputs.
If A and B are logically opposite, output is 1.
If A and B are logically equal, output is 0.
A  B  OUT
---------
0  0 | 0
0  1 | 1
1  0 | 1
1  1 | 0

EQUAL

Click box to see full description


Returns the logical value for a test of equality.
If A == B, OUT is true, else false.
True is any non-zero number, false is 0.

NOT_EQUAL

Click box to see full description


Returns the logical value for a test of in-equality.
If A != B, OUT is true, else false.
True is any non-zero number, false is 0.

LESS_THAN

Click box to see full description


Returns the logical value for a test of A < B.
If A < B, OUT is true, else false.
True is any non-zero number, false is 0.

LESS_OR_EQUAL

Click box to see full description


Returns the logical value for a test of A <= B.
If A <= B, OUT is true, else false.
True is any non-zero number, false is 0.

GREATER_THAN

Click box to see full description


Returns the logical value for a test of A > B.
If A > B, OUT is true, else false.
True is any non-zero number, false is 0.

GREATER_OR_EQUAL

Click box to see full description


Returns the logical value for a test of A >= B.
If A >= B, OUT is true, else false.
True is any non-zero number, false is 0.