Of course, anything is possible with Indigo!
Others may be able to jump in here, but the best option I see in this case is to create two triggers for the button -- one with a condition of "If XX is on" and one for "If XX is off". Both will trigger, but only one will have its conditions met and execute. You could also handle this in various ways with scripting.
Adam