<div>The tests previously set a variable which was not checked until<br></div><div>the subsequent test completed (as env vars are expanded as the</div><div>line is read, meaning a sequence of set /a var=x & echo %var%</div>
<div>echos the contents before the set is executed). In addition when</div><div>multiple variables are involved in the calculation, only the</div><div>first one was being checked, and this is changed to check all</div><div>
variables involved in the calculation.</div>