Hi,
could someone please help me understand this (for me) strange behavior?
I have this code in js:
var y = 1;
execution.setVariable(‘1’,1); // this is int
execution.setVariable(‘y’,y); // this is int
execution.setVariable(‘1+1’,1+1); // this is int
execution.setVariable(‘++y’,++y); // this is double - why?
execution.setVariable(‘y+1’,y+1); // this is double - why?
When I preview the created variables (in task form or cockpit), they dont have same type, some are double and some are int.
Here is the sample project. newVar.bpmn (3.2 KB)
Thanks for any help.
Lukas