Johan Lindberg

Project Finder

Show:

What's happening?

  • Followup: SOLVED - RE: Rule Doesn't Fire as Expected

    Hi again Tim, does r2 = clips.BuildRule("polio-rule", "(immunizations (polio ?x&:(= 0 ?x)) (age ?age&:(>= ?age 60)))", "(assert (needs_polio))","The polio Dose #1 Rule") solve the problem? BR Johan Lindberg johan@pulp.se.

    2009-08-12 18:39:20 UTC in PyCLIPS Python Module

  • Followup: RE: Rule Doesn't Fire as Expected

    Hi, Matching a slot (in a deftemplate) within a rule requires you to state the deftemplate and the slot you wish to match against. You can test the age slot in immunizations with: (immunizations (age ?age&:(< 180 ?age))) See 5.4.1 Pattern Conditional Element in CLIPS Basic Programming Guide[1] for more information about why the "?age&:(< 180 ?age)" is required...

    2009-08-09 15:28:42 UTC in PyCLIPS Python Module

About Me

  • 2003-01-09 (7 years ago)
  • 684311
  • johanlindberg (My Site)
  • Johan Lindberg

Send me a message