Button Problem Help!

I was wondering if i could make a button, that when pressed once, did something then when it was pressed again it did another thing. (In this case to add different bits of text to a text field).