Hi Wolfgang <div><br></div><div>My question was more about if the second way of writing was more preferred because of some solid technical reason rather than just a matter of syntax; that&#39;s how I interpreted the text as it makes the conditional statement &quot;but if you are testing for equality...&quot;.</div>
<div><br></div><div>Anyway thanks for confirming that there is no difference other than coding style.<span></span></div><div><br></div><div>Regards</div><div><br></div><div>Iftikhar <br><br>On Wednesday, 19 June 2013, Wolfgang Laun  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 19/06/2013, droolster &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;quant.coder@gmail.com&#39;)">quant.coder@gmail.com</a>&gt; wrote:<br>

&gt; Hello,<br>
&gt;<br>
&gt; I saw the following in the &quot;Design Patterns for PRS system&quot; pdf and could<br>
&gt; not understand the difference between the two statements (they look the<br>
&gt; same<br>
&gt; to me). Please can the community clarify what the difference is:<br>
<br>
Just count the keystrokes :-) Probably easier to read, too.<br>
-W<br>
<br>
&gt;<br>
&gt; A multiple choice could be written using the same syntactic form, e.g.,<br>
&gt;<br>
&gt; Type( strField == &quot;Huey&quot; || == &quot;Dewey&quot; || == &quot;Louie&quot; )<br>
&gt;<br>
&gt; but if you are testing for equality, the MultiValueRestriction is to be<br>
&gt; preferred, so that the preceding<br>
&gt; pattern is better written as<br>
&gt;<br>
&gt; Type( strField in ( &quot;Huey&quot;, &quot;Dewey&quot;, &quot;Louie&quot; ) )<br>
&gt;<br>
&gt; Thank you,<br>
&gt;<br>
&gt; Iftikhar<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://drools.46999.n3.nabble.com/MultiValueRestriction-tp4024384.html" target="_blank">http://drools.46999.n3.nabble.com/MultiValueRestriction-tp4024384.html</a><br>
&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;rules-users@lists.jboss.org&#39;)">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;rules-users@lists.jboss.org&#39;)">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>
</blockquote></div><br><br>-- <br>Sent from Gmail Mobile<br>