Variable does not exist?

i am very confused

might be the switch case block not being in the right context, for whatever reason

huh thats the problem, weird (i fixed it)