<br>&nbsp;&nbsp; If you are using trunk, you can do:<br><br>Classname( varname in (&quot;1&quot;, &quot;2&quot;, &quot;3&quot;) )<br><br>&nbsp;&nbsp; Alternatively you can use connectives:<br><br>Classname( varname == &quot;1&quot; || == &quot;2&quot; || == &quot;3&quot; )
<br>&nbsp;<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><br><div><span class="gmail_quote">2007/6/1, Rajesh.Sachin10 &lt;<a href="mailto:rajesh_sachin10@yahoo.co.in">rajesh_sachin10@yahoo.co.in</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>How to check a variable in a class contains any of the four or five value. I<br>tried the below codes, but it throws error.<br><br>Codes<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; context : Context(state == Context.START_UP) exists Classname(varName
<br>: &quot;1&quot; || &quot;2&quot; || &quot;3&quot;)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; context : Context(state == Context.START_UP)&nbsp;&nbsp;exists<br>Classname(varName : &quot;1&quot; || varName : &quot;2&quot; || varName : &quot;3&quot;)<br><br>
<br><br>There is anyother alternate way to check this condition?<br>--<br>View this message in context: <a href="http://www.nabble.com/Use-of-Relational-operator-in-Drools-tf3851675.html#a10910936">http://www.nabble.com/Use-of-Relational-operator-in-Drools-tf3851675.html#a10910936
</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli
<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>