C# script - variable name "ex"

'Zat a bug or desired?

bug.gh (4.6 KB)

That is probably in an exception handler in one scope up that you don’t get to see. @DavidRutten will know better if that is the case.

Hi @dsonntag,

I would call ex an undocumented keyword. The code inside of RunScript is run in a Try-Catch block and the Catch statement declares a Exception variable named ex.

Basically, choose a different variable name…

– Dale

You found an Easter Egg it seems. Good catch! :slight_smile:

// Rolf