Hi,
that's different reason / special case here - calc(...) (without the ';') has a special meaning when used as parameter - please see here:
https://krpano.com/docu/actions/#calc
In this case (without ';'):
|
Quellcode
|
1
|
if(%1 !== null, calc(myVar, %1 + myOtherVar));
|
it would be that situation - using calc() to resolve a parameter (the parameter of the if() action):
|
Quellcode
|
1
|
action( calc(expression), ... )
|
and 'myVar, %1 + myOtherVar' would be an invalid expression - mainly because of the ',' character.
But in this case (with the ';'):
|
Quellcode
|
1
|
if(%1 !== null, calc(myVar, %1 + myOtherVar););
|
it would be that situation - that means a normal action call:
|
Quellcode
|
1
|
calc(variable, expression)
|
and therefore this case is working.
That means it works basically as intended but I agree that can be confusing

.
Best regards,
Klaus