The way I would do this is to write a deffunction that examines the
individual slots and values of the multislot as you want and returns
TRUE or FALSE. Then in your rule, put:

(test (my-func ?conditions))

Cheers,
Sidney Bailin
Knowledge Evolution, Inc.

---------------- In reply to: ----------------
Hello Jess users;

Any body knows how to use 'test' function for a specific nth$ string in
multislot.

example:

(deftemplate status (multislot conditions))

(defrule .......
?f1 (status (conditions ?conditions))
=>
(bind ?conditions (create$ (read)))
......
  (assert (status (conditions ?conditions)))
)

Say, the asserted values  in condition are (YES NO NO YES ...)

In another rule, I wanted to do certain actions based on the values, and
its
position in condition. For this I wanted to use
'test' functionality by comparing the value and its position.

Or can I achieve this by some other means.

Thank you in advance
Raghavendra

---------------------------------------------------------------------
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