&= (logical AND assignment)

Tinderbox Icon


Operator Type:   Operator
Operator Scope of Action:   Item
Operator Purpose:   Assignment

To make is 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):

Up: Assignment operators

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Types : Assignment operators : &= (logical AND assignment)

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox