You need to check the frame number also. If it's 0, set it to 1 else set it to 0.
ok what you see is what you just suggeted, when i click or tap the square change the frame from 1 to 0 but what i want to do is change the frame back to 1 when the player click it, i already try adding a new condition with everything like while or if and even with or but anything works just because all the condition are true and then nothing happens