<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
One is a field constraint disjointed connected the other is a
Conditional Element 'or'. Details of both are covered in the manual.
Suffice to say the first is like writting if ( stmt1.attrib1 == "X" ||
smt1.attrib1 == "Y" ) whil the ohte results in two separate rules, one
checking "X" and the other checking "Y", both rules can match and fire.<br>
<br>
Mark<br>
<br>
Jai Vasanth wrote:
<blockquote
 cite="mid:3e7e19680802061608re2b700di3c3ce76419f0a1a7@mail.gmail.com"
 type="cite">Hi,<br>
  <br>
&nbsp;What is the difference between the following 2 statements<br>
  <br>
  <br>
stmt1 : FactA( attrib1 == "X" ||&nbsp; attrib1 =="Y")&nbsp;&nbsp;&nbsp; <br>
  <br>
  <br>
stmt2: FactA( attrib1 =="X") or FactA(attrib1 =="Y")<br>
  <br>
  <br>
  <br>
Thanks <br>
  <br>
Jai <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>