&= (logical AND)

Tinderbox Icon

Operator Type:   Assignment
Operator Scope of Action:   Item

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.

For example:

$Urgent &= any(child,$Urgent) 

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

See also the logical OR assignment.

Up: Item-based operators
Previous: eval([item],expression)  Next: * (multiplication) 

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox