"§5.4.1.4 Connective Constraints
The ~ constraint has highest precedence, followed by the & constraint, followed by the | constraint. Otherwise, evaluation of multiple constraints can be considered to occur from left to right.
There is one exception to the precedence rules that applies to the binding occurrence of a variable. If the first constraint is a variable followed by an & connective constraint, then the first constraint is treated as a separate constraint which also must be satisified. Thus the constraint ?x&red|blue is treated like ?x&(red|blue) rather than (?x&red)|blue as the normal precedence rules would indicate."
However (in both versions 63x and 64x):
(deftemplate relation (slot size (type INTEGER)) (multislot elements))
(defrule test
(relation (size 4) (elements ?z1 ?z2 ?z3 ?z4))
(middle ?zi2&?z2|?z3)
(middle ?zi3&?z2|?z3&:(< ?zi2 ?zi3))
=>
(printout t ?z1 ?z2 ?z3 ?z4 crlf)
)
(reset)
(assert
(relation (size 4) (elements 1 2 3 4))
(middle 2)
(middle 3)
)
(facts)
f-0 (initial-fact)
f-1 (relation (size 4) (elements 1 2 3 4))
f-2 (middle 2)
f-3 (middle 3)
(watch rules)
(run)
FIRE 1 test: f-1,f-3,f-2 ;;; shouldn't fire
1234
FIRE 2 test: f-1,f-2,f-3
1234
FIRE 3 test: f-1,f-2,f-2 ;;; shouldn't fire
1234
--
You received this message because you are subscribed to the Google Groups "CLIPSESG" group.
To post to this group, send email to CLIP...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CLIPSESG?hl=en
--> IF YOU NO LONGER WANT TO RECEIVE EMAIL <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Click on "Edit my membership" link.
Select the "No Email" radio button.
Click the "Save these settings" button.
--> IF YOU WANT TO UNSUBSCRIBE <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Sign in
Click on "Edit my membership" link.
Click the "Unsubscribe" button.
Note: This appears to be the most reliable way to unsubscribe
Alternately, send email to CLIPSESG-u...@googlegroups.com. You will receive an email which you must respond to as well to unsubscribe. Clicking the link mentioned in the unsubscribe reply does not appear to work reliably.
---
You received this message because you are subscribed to the Google Groups "CLIPSESG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clipsesg+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clipsesg/90f8094f-241f-4f75-a431-a8d9dd389a1cn%40googlegroups.com.