I just recognised that sometimes (calc) we have to use ; mandatory
like in this case, where that would work :
Code
set(myOtherVar, 10);
if(%1 !== null, calc(myVar, %1 + myOtherVar); );
debug('myVar value', myVar);
and that would not :
Code
set(myOtherVar, 10);
if(%1 !== null, calc(myVar, %1 + myOtherVar));
debug('myVar value', myVar);
With set and other actions you can just skip these "extra" semicolon, am I right ?