Attribute Value (Advanced) Template
The Attribute Value (Advanced) template has the following form:
(for [any] items)
You can toggle between [any] and [all]. The Attribute Value (Advanced) template can be used only within a require constraint, and it changes the logic for conditions involving attributes. This template does not display in the Pick a Constraint list. Instead, it displays in the list for inserting a condition.
The following require constraint contains two attribute conditions:
Attribute C = M in Relationship A requires Attribute D=P in Relationship B
This constraint works as follows: If any item from Relationship A has Attribute C=M in the solution, then all the items from Relationship B must have Attribute D=P in the solution. This is the default behavior of the require template when it contains attribute conditions and is called the Any-All form.
By inserting the Attribute (Advanced) template into the constraint, you can create all the other combinations of Any-All logic:
Attribute C = M in Relationship A requires Attribute D=P (for any items) in Relationship B
If any item from Relationship A has Attribute C=M in the solution, then there must be at least one item from Relationship B that has Attribute D=P in the solution (Any-Any form).
Attribute C = M (for all items) in Relationship A requires Attribute D=P in Relationship B
If all the items from Relationship A have Attribute C = M in the solution, then all the items from Relationship B must have Attribute D = P in the solution (All-All form).
Attribute C = M (for all items) in Relationship A requires Attribute D=P (for any items) in Relationship B
If all the items from Relationship A have Attribute C=M in the solution then there must be at least one item from Relationship B that has Attribute D=P in the solution (All-Any form).
To create this logic in other constraint types, such as exclude constraints, use one of the Advanced Constraint Templates to create the constraint. Then insert a numAttr condition in the constraint.