JESS: Multislot with single value

2004-08-16 Thread Mehta, Chirag (IT)
Title: Multislot with single value Hello, I'm having a slight problem. I have this template: (deftemplate grouped-facts facts that have been grouped (slot partitionname) (slot partitionvalue) (slot summationvalue) (multislot factcollection)) Where factcollection is a collection of

RE: JESS: Multislot with single value

2004-08-16 Thread Mitch Christensen
) (summationvalue ?mv) (partitionvalue ?c) (factcollection $?fc)) ... -Mitch -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Mehta, Chirag (IT)Sent: Monday, August 16, 2004 9:53 AMTo: [EMAIL PROTECTED]Subject: JESS: Multislot

RE: JESS: Multislot with single value

2004-08-16 Thread Jason Morris
I think that Chirang wrote: I need to check any of the facts have a particular slot value in the factcollection. Hi Chirang, Two things: 1) You need to add a $ to the LHS pattern when matching a multifield. So, you have to write: (factcollection $?fc) Make sure that you drop the $ when using the