Thread
:
Best way to check multiple Boolean values?
View Single Post
#
2
30-01-2010, 18:46
basicxman
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
Re: Best way to check multiple Boolean values?
In C++ you could do
Code:
if (joystick.GetRawButton(1) && joystick.GetRawButton(2)) { }
Valid boolean operators are || (or) and && (and). I'm not sure how LabVIEW processes these but I'm sure there's a boolean conditional in LabView.
basicxman
View Public Profile
Find all posts by basicxman
Find CD-Media Photos by basicxman
Find CD-Media Papers by basicxman