From this website, the OP has noticed a problem.
Cause
Consider the following code snippet.
if 1==1 (
set /a result = 2*(3+4)
)
At your first glance, you may think CMD.exe would process it like so:
The condition is true, execute code block
Set variable result's value to 14
Continu...