Enum not at top level expression

#1

Hello guys!

I have something like this:

So basically an enum array, where a specific enum like “Points” refers to a string and type “POINTS” / Float32. My question is:

If I try putting this in the main function I get a not at toplevel error, so is it in any way possible to insert this inside a function through some work around? I want it to be not assigned in the global scope.

Kind regards

#2

Please don’t post screenshots, but quoted code.

1 Like