Scope of $variable in Let statement in Calculated Field

Argh! was just bitten by this issue again today. I seem to have fallen into a development pattern where I do this:

  • create a useful calculation as a Set Variable script step.
  • later, decide this would be even more useful as a calculated field.
  • copy & paste my function from the script to the field definition (forgetting to change $var to var (or ~var...)
  • end up with weird "impossible" behavior

It would be great if there was an easy way to do a global search for these issues...Global search across field definitions?