Shop OBEX P1 Docs P2 Docs Learn Events
"greater or equal to" command? — Parallax Forums

"greater or equal to" command?

evergreenevergreen Posts: 43
edited 2006-05-14 22:08 in BASIC Stamp
How can this command be done?

Thanks

Comments

  • SSteveSSteve Posts: 808
    edited 2006-05-14 21:46
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    
    IF num1 >= num2 THEN
      'commands
    ENDIF
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows
  • evergreenevergreen Posts: 43
    edited 2006-05-14 22:04
    Sweet, thanks. And I'm assuming less than or equal to is: <=, right?

    Thanks
    Matt
  • SSteveSSteve Posts: 808
    edited 2006-05-14 22:08
    Yep. The comparison operators are described in the Basic Stamp manual in the IF/THEN section.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows
Sign In or Register to comment.