PDA

View Full Version : "greater or equal to" command?



evergreen
05-15-2006, 04:01 AM
How can this command be done?

Thanks

SSteve
05-15-2006, 04:46 AM
' {$STAMP BS2}
' {$PBASIC 2.5}

IF num1 >= num2 THEN
'commands
ENDIF

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows

evergreen
05-15-2006, 05:04 AM
Sweet, thanks. And I'm assuming less than or equal to is: <=, right?

Thanks
Matt

SSteve
05-15-2006, 05:08 AM
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