Shop OBEX P1 Docs P2 Docs Learn Events
Multiple requirements? — Parallax Forums

Multiple requirements?

pcrobotpcrobot Posts: 103
edited 2006-05-19 21:29 in BASIC Stamp
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.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-19 21:29
    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
Sign In or Register to comment.