Or just find how to write a regex to match all that numbers:<br>Using matches and <a href="http://java.sun.com/docs/books/tutorial/essential/regex/">http://java.sun.com/docs/books/tutorial/essential/regex/</a><br><br><div class="gmail_quote">
On Tue, Nov 17, 2009 at 6:50 PM, Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think that you can do something like:<br><br>m : Customer( age == &quot;18&quot; || ==&quot;21&quot; || ==&quot;33&quot; || ==&quot;28&quot; || ==&quot;40&quot; || ==&quot;41&quot;)<br><br><div class="gmail_quote">2009/11/17 Lindy hagan <span dir="ltr">&lt;<a href="mailto:lindyhagan@gmail.com" target="_blank">lindyhagan@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5"><br>Need to do some tasks if customers age is in 18,21,33,28,40,41. Can&#39;t use contains as age is a string value.Could any one help me out. Below rule does not work.<br>

<br><br>rule &quot;Age Factor&quot;<br>     when<br>
          m : Customer( age matches &quot;18,21,33,28,40,41&quot;)<br>     then          <br>         System.out.println(&quot;Customer falls in age group &quot;);<br>          doAgeTasks();<br>end<br><br>Thanks,<br><font color="#888888">Lindy.<br>


</font><br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
 - Salatino &quot;Salaboy&quot; Mauricio -<br>

</font></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>