Vex Code V5 - using a button as a toggle

I’m trying to make a button function as a toggle. I wanted a button to make my motorized wheelie bar hold at a certain angle. I got it to hold at the angle, but I can’t figure out how to make it toggle to off, it just toggles on. Here is an image of my code. Any help is appreciated!Screenshot 2022-01-19 4.03.03 PM

Screenshot 2022-01-19 4.20.21 PM
Do something more like this. Also you need to set the variable to 1 one when the program starts if you choose to do something like this.