Hey all,
How can I change the text of a button each time a user clicks on it?
For example, I have a button "Connect", if connection is successfull I want to change the text to "Disconnect" and vice versa. For now I dont have any function that checks if the connection is successfull so for the meantime I just want the button text to be updated every time a user clicks on it.