@JonL While your suggestion works, you CAN just toggle the Boolean! See my note a couple of replies above. A Boolean toggle in Bubble is this (posted a couple replies above):
So you Set State > select the custom state that is a yes/no and set it like this:
This flip-flops the state of SomeBoolean from no to yes and vice-versa.