what I am trying to achieve is a boolean that switches every time a value is increased by 1. Example: I have a button. The number the button is pressed is stored in a list and every time it is pressed increased by one. How can a boolean state be switched every time the button is pressed and thus the number increased by.
Is there an easy solution? Thanks in advance.