is it possible to perform different events each time GUI.Button is clicked?

hello,
I am trying to perform different actions on each click of the GUI button but able to perform only one action i.e on the first click, how can I do different tasks over the same button clicked everytime ???
I tried searching various tuts but did not find the relevant one, most of them said:

if (GUI.Button(Rect(30, 300, 80, 30), “Correct”)){
// perform actions
}

what if I have to perform some different actions on the second click of the same button??? please help I am new to this…

you can do something like make an integer to keep track of how many times you clicked the button.

int count = 0;
f (GUI.Button(Rect(30, 300, 80, 30), "Correct"))
{
    if(count == 0)
   {
       // perform actions 
   }
   else if(count == 1)
   {
       // perform other actions 
   }

   count++;
}

Also you can use delegates.

https://unity3d.com/learn/tutorials/modules/intermediate/scripting/delegates