Logic boolean operators
Boolean operators are used to represent the meaning of two input boolean values as one value. If or operator is used, evaluation of the result is simplified. Therefore it is sufficient when left value is True and right value is not checked, or the other way around.
This block is useful for use in conditional flow statements If.
| Inputs | Output | ||
|---|---|---|---|
| A | B | A and B | A or B |
| True | True | True | True |
| True | False | False | True |
| False | True | False | True |
| False | False | False | False |
XML representation of the logic_operation block
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="logic_operation">
<field name="OP">AND</field>
<value name="A">
<block type="logic_boolean">
<field name="BOOL">TRUE</field>
</block>
</value>
<value name="B">
<block type="logic_boolean">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</xml>

Logic boolean operator

Logical boolean operator - example