Enable and disable entities with a button

My next challenge, how do I tell the script that when there is a second click it changes to “true” and so on consecutively “true / false / true / false … to infinity”