Well, that's what multifield variables do.

 (defrule some-rule
   (expression ?v OR $?X)
   =>
   action
   ;; ?v is "A" and $?X is ([ B AND C OR D ]).


Does this not do what you need?


I think Daniel Carrier wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello all,
> 
>       I'd like to know if it's possible to define a rule in such a way as
> to permit the pattern matching of say the start of a fact with anything else
> afterwards. For instance,
> 
> (assert (expression A OR [B AND C OR D] ))
> 
> (defrule some-rule
>   (expression ?v OR X)
> =>
> action
> 
> where X would be the rest of the tokens in the matching fact ( it would
> value [B AND C OR D] ).
> 
> To my knowledge, within a rule based expert system i shouldn't be able to do
> such things but If i was it could simplify greatly the goals i have fixed
> myself.
> 
> 
> Can anyone help me out?
>       
> 
> Daniel Carrier
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

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