quick question, new to Godot - I have a variable which can be 0 or 1 what's the best way to flip it from 0 to 1 and vice versa?
I tried
variable = !variable
but that causes the value to be either true or false and breaks when I use it in an array
eg. my_array[variable]