If you are using trunk, you can do:

Classname( varname in ("1", "2", "3") )

  Alternatively you can use connectives:

Classname( varname == "1" || == "2" || == "3" )

  []s
  Edson


2007/6/1, Rajesh.Sachin10 <[EMAIL PROTECTED]>:


How to check a variable in a class contains any of the four or five value.
I
tried the below codes, but it throws error.

Codes

       context : Context(state == Context.START_UP) exists
Classname(varName
: "1" || "2" || "3")

       context : Context(state == Context.START_UP)  exists
Classname(varName : "1" || varName : "2" || varName : "3")



There is anyother alternate way to check this condition?
--
View this message in context:
http://www.nabble.com/Use-of-Relational-operator-in-Drools-tf3851675.html#a10910936
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
 Edson Tirelli
 Software Engineer - JBoss Rules Core Developer
 Office: +55 11 3529-6000
 Mobile: +55 11 9287-5646
 JBoss, a division of Red Hat @ www.jboss.com
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to