This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Actions & Rules : Conditional statements using multiple arguments | aTbRef Site Map |
Conditional statements using multiple arguments |
If() conditional statements and queries may use more than one argument using logical joins.
( A & B )
Reads: if condition A AND condition B are true, then this compound query is true.
Contrast this with the &= operator (below).
( A &= B )
Reads: result is true if condition A is currently true and, if so, if condition B is also true.
Thus, if condition A is false, condition B is not checked and the overall result is false. Thus in some cases only condition A is evaluated.
By comparison, with a ( A & B ) query both condition A and condition B are are always evaluated.
( A | B )
Reads: if condition A OR condition B is true, then this compound query is true.
Contrast this with the |= operator (below).
( A |= B )
Reads: result is true if condition A is currently true or, if so if condition B is true.
Thus, if condition A is false, query B is not checked and the overall result is false. Thus in some cases only condition A is evaluated.
By comparison, with a ( A | B ) query both condition A and condition B are are always evaluated.
(A | B) & ( C | ( D | E ) )
This is a more complex example of logical joins. Reads: if (condition A OR condition B is true) AND (condition C OR (either condition D OR condition E are true)), then this compound query is true.
Up: Actions & Rules | |
Previous: Conditional Actions (if clauses) | Next: Expressions in paths |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]