Like the condition for the button press, you can create sub event conditions, indented in the same event. Then you would add conditions if var=0, if var=1 etc Then on the actions for those you would run whatever you needed on each press and add 1 to var for the next time.
So to be clear, not as simple as adding a condition to the main button press condition but if you press S and indent the block you can create your sub conditions there which are listed and come after the button press in the same event. Each time you press it, the variable will be different and run different actions.