This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

&= (logical AND assignment)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Operator   [other Operator type actions]

 Item   [operators of similar scope]

 Assignment   [other Assignment operators]

 Already in v5.0.0

 


To make it easier to write rules succinctly, you can use the assignment:

$TheAttribute &= expression; 

…which sets $TheAttribute to be true only if it is currently true AND the expression is also true. Thus, if $TheAttribute is false, the expression is still checked. An attribute that has no value set (or inherited) is evaluated as false.

For example:

$Urgent &= any(children,$Urgent) 

Thus a project is considered urgent if it has been declared to be urgent itself and if any child is urgent.

See also the logical OR assignment.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : &= (logical AND assignment)