Motor help

Hello, our team is having some trouble having two buttons control the same motor. We’re programming in labview and want to have two buttons on the joysticks control one motor controller. We have two buttons leading into two comparators that return either 1 or 0 (-1 in the case of the second button) but since only one button is ever pressed at once it always returns a 0, so the motor twitches on/off since the controller is recieving multiple values

Maybe something like this?

Some other variations are here under Button Control of a Motor.

Thank you, I figured it was something similar to this but couldnt figure in my jead how to do it properly. Will implement this on monday when i have access again