Hei all,
I have an array checkerArr = [0,0,0,0,0,0], I change the array content dynamically. At a certain point I want to know, how is the checkerArr like at the moment, is it [0,0,0,0,0,0], or [0,0,0,1,0,0] or [0,1,1,1,0,0] ...
This doesn´t work:
if (checkerArr == [0,0,0,0,0,0] || checkerArr == [0,1,0,0,0,0] || checkerArr == [0,0,1,0,0,0] || checkerArr == [0,0,1,1,0,0] || checkerArr == [0,0,1,1,1,0] || checkerArr == [0,0,1,1,1,1]){
// do things
}
What am I doing wrong?