All Branch Operations follow the same format:
QUERY, TRUE, FALSE
The first statement is the query which can be checking an input, comparing a variable, etc. The next statement is what you want the program to do if the query is true, and finally the last part is what you want the program to do if the query is false.The query can be any of the following operations. For example
V1>=V2, ?99, ?96
If V1 is greater or equal than V2 then send ?99 query else send ?96 query
I | Input |
If an input is used alone, it is not necessary to compare, as it is implied that the statement is true if the input is true | |
I3,W0,T0 | If input three is active, wait, else do nothing and move to next line. |
&& | And |
The And query is true if both operands are true. | |
I1.1 && I2.1, C2.1, W0 | If inputs one and two are both active, call bank two, else wait. |
|| | Or |
This query is true if either operand is true. | |
I1.1 || I2.1, C2.1, W0 | If either input one or two are active, call bank two, else wait. |
!= | Not equal |
This query is true if the operand is 0. | |
V1 != I1.1 | If input one is active, V1 is 0. If input one is deactivated, V1 is 1. |
> | Greater Than |
This query is true if the first operand is greater than the second. | |
V1>V2, C2, T0 | If variable one is greater than variable two, call bank 2, else do nothing. |
>= | Greater Than or Equal To |
This query is true if the first operand is greater than or equal to the second. | |
V1 >= V2, C2, T0 | If variable one is greater than or equal to variable two, call bank 2, else do nothing. |
== | Equal To |
This query is true if the first operand is equal to the second. | |
P1 == V1, J2, T0 | If position one is equal to variable one, jump to bank 2, else do nothing. |
< | Less Than |
This query is true if the first operand is less than the second. | |
V1<V2, C2, T0 | If variable one is less than variable two, call bank 2, else do nothing. |
<= | Less Than or Equal To |
This query is true if the first operand is less than or equal to the second. | |
V1<=V2, C2, T0 | If variable one is less than or equal to variable two, call bank 2, else do nothing. |