I want the button 1 as a toggle between global variable "ElPatoArco" 0 and 1, so I've made these 2 events. On pressing button one though, it doesn't work. Maybe the moment I press 1 it switches ElPatoArco from 0 to 1 and that makes so that pressing 1 makes 1 switch to 0 and they end up in this infinite loop. I'm not sure though, tell me if it's supposed to work and I'll restart but if they do indeed cancel each other out please let me know and offer an alternative to toggle variables (if you can)