On Oct 24, 2006, at 8:14 PM, Skeptic 2000 wrote:
Thanks, I missed the contains, it's not in the Jess functions list,
where it comes from ?
It's a method in the java.util.Collections interface, yes? We're
calling it on ?theList, which is a java.util.List.
From: "Ernest Friedman-Hill" <[EMAIL PROTECTED]>
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]
--------------------------------------------------------------------