PDA

View Full Version : Multiple requirements?



pcrobot
05-20-2006, 05:17 AM
How do I check 2 different things before executing something? I want to debug a message only if, a variable is a certain number, and a pushbutton is pushed. Any ideas?
Thanks!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Robotics
ro-bot-ics (noun)
the science or technology of robots, their design, manufacture, application, use, etc.

Chris Savage
05-20-2006, 05:29 AM
You can use compound conditionals. You could do something like:


IF X=7 AND IN0 = 0 THEN

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)