2009-08-12 19:53:30 UTC
>>
r2 = clips.BuildRule("polio-rule", "(immunizations (polio ?x&:(= 0 ?x)) (age ?age&:(>= ?age 60)))", "(assert (needs_polio))","The polio Dose #1 Rule")
<<
Thanks again Johan. WOW! Was I ever trying to complicate things connecting the elements on the LHS.
So in essence it is as simple as taking everything you want to evaluate on the LHS and putting it inside a set of it's own parens like this: (polio ?x&:(= 0 ?x)) (age ?age&:(>= ?age 60)) then the entire group is inside a set of parens surrounded by double quotes; along with the leading template name.
As I understand it they are evaluated left to right and when any one group fails then the rule is not placed on the Agenda. ????
BTW: Where are you in Sweden? I spent Aug 07 - Feb 08 in Stockholm. I loved the people and the city. The weather wasn't so impressive though. :-)