Line 1: |
Line 1: |
| <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> | | <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> |
− | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | |
| This constraint may be used to perform logical operators on any child constraints that are added to this constraint. | | This constraint may be used to perform logical operators on any child constraints that are added to this constraint. |
| | | |
| To add child constraint(s) tap the constraint in the edit macro screen and select the 'add constraint' option. All child constraints will appear indented directly under this constraint. | | To add child constraint(s) tap the constraint in the edit macro screen and select the 'add constraint' option. All child constraints will appear indented directly under this constraint. |
− | </pre><br/>
| + | <br/> |
− | <pre style="background-color: #FFFF99; color: #112A46; border-radius: 10px; padding: 10px;">
| + | |
| When several constraints are used, they are linked by an implicit AND i.e. ALL the constraint conditions have to be TRUE for the action to execute. | | When several constraints are used, they are linked by an implicit AND i.e. ALL the constraint conditions have to be TRUE for the action to execute. |
| | | |
| If you need a more sophisticated logic, you can link the constraints with logical operators: | | If you need a more sophisticated logic, you can link the constraints with logical operators: |
− | </pre><br/>
| + | <br/> |
| + | |
| <span style="color: #0E9549; font-size: 24px;">'''AND logic operator (by default)'''</span><br/> | | <span style="color: #0E9549; font-size: 24px;">'''AND logic operator (by default)'''</span><br/> |
− | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | |
| ALL constraint conditions below this operator have to be TRUE. If no other logical operators are needed, this one is not necessary. | | ALL constraint conditions below this operator have to be TRUE. If no other logical operators are needed, this one is not necessary. |
− | </pre>
| + | |
| <span style="color: #0E9549; font-size: 24px;">'''OR logic operator '''</span><br/> | | <span style="color: #0E9549; font-size: 24px;">'''OR logic operator '''</span><br/> |
− | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | |
| AT LEAST ONE of the constraint conditions below this operator has to be TRUE. | | AT LEAST ONE of the constraint conditions below this operator has to be TRUE. |
− | </pre>
| + | |
| <span style="color: #0E9549; font-size: 24px;">'''XOR (XOR = eXclusive OR)'''</span><br/> | | <span style="color: #0E9549; font-size: 24px;">'''XOR (XOR = eXclusive OR)'''</span><br/> |
− | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | |
| ONE AND ONLY ONE of the constraint conditions below this operator has to be TRUE. | | ONE AND ONLY ONE of the constraint conditions below this operator has to be TRUE. |
− | </pre>
| + | |
| | | |
| <span style="color: #0E9549; font-size: 24px;">'''Logical operator NOT '''</span><br/> | | <span style="color: #0E9549; font-size: 24px;">'''Logical operator NOT '''</span><br/> |
− | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | |
| NEGATION of the constraint condition attached i.e. the constraint has NOT to be TRUE for the action to execute. | | NEGATION of the constraint condition attached i.e. the constraint has NOT to be TRUE for the action to execute. |
| | | |
| All these constraints and operators can be nested to get even more sophisticated conditions. | | All these constraints and operators can be nested to get even more sophisticated conditions. |
− | </pre>
| |