Shop OBEX P1 Docs P2 Docs Learn Events
Question about IF statement — Parallax Forums

Question about IF statement

eagletalontimeagletalontim Posts: 1,399
edited 2009-01-18 19:40 in General Discussion
I was wondering if there is a way to do something like the code below in the SX/B

IF val1 >= val2 AND val3 <= val2 THEN
' do something
ENDIF




or do I have to write 2 if statements?

Comments

  • BeanBean Posts: 8,129
    edited 2009-01-18 19:40
    You have to write two IF's as in:

    IF val1 >= val2 THEN
    · IF val3 <= val2 THEN
    ··· ' Code here
    · ENDIF
    ENDIF

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ·The next time you need a hero don't look up in the sky...Look in the mirror.


    ·
Sign In or Register to comment.