Same button: Press on press off

I currently have button 0 on my joystick controlling a solenoid as a press and hold button, however our driver would like me to make it so that he presses the button once to open the solenoid and then later he can press the SAME button to close the solenoid. Our team programmer was a senior last year and left without teaching anyone anything so I am stuck trying to figure this out and do not know how. Can some one please help?

Thank you,
Brandan Schmitz
FIRST Team 2518

Here are some examples:
http://www.team358.org/files/programming/ControlSystem2015-2019/labview/index.php#ButtonToggleAction

Make a boolean so that when the button is pressed it goes to the opposite state.