So I'm trying to make a warping system like the ones from the Mario games, and so far I'm able to make a very simple one (it allows me to warp to a node somewhere in the same Level scene).
However when I try to compare my exported(int) variable to the values of the array (the values are nodes inside a group called "exit" in the tree, it gives me an error. This is what my script looks like, with the error included:


I clearly don't know how to use arrays or how to compare them very well yet, so any help is appreciated!! :)