Scope of $variable in Let statement in Calculated Field

This is a bug that could have serious consequences. No-one wants to have values from field calculations bubbling up into their scripts.

It is an excellent reason to ensure that you limit the scope of your variables as tightly as possible. In your case, the variable $N can be more tightly scoped by removing the $ character, making it a calculation variable.

1 Like