No difference, it was/is just used a lot in examples and advice given on here so has sort of become an unofficial standard.<br><br>Some argue the presence of &quot;$&quot; helps identify bindings when scanning DRL.<br><br>
<div class="gmail_quote">On 15 January 2013 20:04, suddeb <span dir="ltr">&lt;<a href="mailto:sudipta.deb@gmail.com" target="_blank">sudipta.deb@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
As I am very new to Drools, could you please tell me what is the difference<br>
between adding a $ at the beginning of a variable and without $.<br>
For example:<br>
rule &quot;validate holiday&quot;<br>
when<br>
   *$h1 : Holiday( `when` == &quot;july&quot; )*<br>
then<br>
   ......<br>
end<br>
<br>
and<br>
<br>
rule &quot;validate holiday&quot;<br>
when<br>
   *h1 : Holiday( `when` == &quot;july&quot; )*<br>
then<br>
   ......<br>
end<br>
<br>
Regards,<br>
Sudipta Deb<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Difference-between-adding-at-the-beginning-of-a-variable-tp4021549.html" target="_blank">http://drools.46999.n3.nabble.com/Difference-between-adding-at-the-beginning-of-a-variable-tp4021549.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>