Can someone explain this Switch?

nvm understood :slight_smile:

“State” is an enum, which has a member “Idle” (State.Idle). The “Idle” being checked within the case statement is a completely separate variable, which is apparently a boolean, as it’s being assigned a “true”.

So, State.Idle and Idle are references to 2 completely different things.