The posted code will activate the alternate function while the button is held. It will not toggle when the button is pressed.
For a toggle check out Team 358's
Labview Examples page. There is an example there called "Button Toggle Action".
There is also an example provided with Labview. Click "Find FRC Examples" on the splash screen, look under "Joystick" and find "Joystick Button Latching"