Something like this?

(defrule theRule
    (theFact (theProperty ?theList&:(?theList contains "xyz")))
    => ...


On Oct 24, 2006, at 2:15 PM, Skeptic 2000 wrote:


Hi,

In my rules, I need to tests some shadows fact which have as one of their properties a List.

For example, let's say it's a List of String and I my test is to check that the string "xyz" is part of the list.

What would be the most proper way to do this ?

---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to