AFAIK enums can't be variables, only constant.
edit: not strictly related to godot/GDScript but this article I feel covers it well:
https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html
An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must be equal to one of the values that have been predefined for it. Common examples include compass directions (values of NORTH, SOUTH, EAST, and WEST) and the days of the week.
Because they are constants, the names of an enum type's fields are in uppercase letters.
In your case I think its a named enum you likely want to use, from the GDScript basics example:
# Enums
enum {UNIT_NEUTRAL, UNIT_ENEMY, UNIT_ALLY}
enum Named {THING_1, THING_2, ANOTHER_THING = -1}
The second example is probably the one to use. So you can derive the value of a variable by referring to the named enum and pick a value from the array/list. But your variable can't itself be of enum type. A constant is a constant value, a variable is a variable value and an enumerator is a set static enumerator.
edit: scrolling further there is a dedicated section for enums in GDScript basics page:
https://docs.godotengine.org/en/stable/getting_started/scripting/gdscript/gdscript_basics.html?#enums
---
This discussion was caught in the moderation queue since you have not confirmed your account yet.
Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. You can resend a confirmation email when you log into your account if you cannot find the first verification email.
If you need any help, please let us know! You can find ways to contact forum staff on the Contact page. Thanks! :smile: