<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><span class="ul-threaded" style="margin: 0.5em 0pt 0pt;"><span class="connect"><span id="li93883" class="li-threaded"><span class="threaded"><span class="post-middle"><span id="post93883" style="display: block;">Using <br>drools 5.1
<br>mvel 2-2.0.14
<br><br>In consequence (then) block : (dialect strict or not does not make a difference)
<br><br>Trying to sum up some numbers after a <span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;" class="yshortcuts" id="lw_1261280151_0">multiplication operation</span>. For example :
<br><br>t.out = t.in2*t.in3 + t.in3*t.in4 + t.in2*t.in4;
<br><br>(the object t has all its attributes of the type String), and all the <a target="_blank" href="http://t.in"><span class="yshortcuts" id="lw_1261280151_1">t.in</span></a> parameters are actually numbers-as-strings.<br><br>So the multiplication is going on fine, as expected, but the addition (+) sign, is concatenating instead of adding.
<br><br>So the for inputs "1", "2" and "3", the result looks something
like : 2.06.03.0 &nbsp;(i.e concetenated) instead of the expected 11.0.
<br><br>What is going worng &nbsp;How does the + operator decide to do concat instead of doing addition.
<br><br>Any documentation on this + operator logic ?
<br><br>Note : The above works fine when I use MVEL without Drools.
<br><br>Thanks 
</span></span></span></span></span></span></td></tr></table><br>