Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Newie got a few questions
Page 25 of 25 | |||||
Author | Message | ||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3019 |
For your original SELECT CASE statement, this from the manual applies: "When a number of test expressions (separated by commas) are used the CASE statement will be true if any one of these tests evaluates to true." So for "Case IS > 0, IS <= 1" any number greater than 0 will satisfy the first CASE condition, so you'll always choose 1.bmp. When you want a range, you use "TO": CASE .0000001 TO 2 But it's usually better to use a calculation when possible than a SELECT statement. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Page 25 of 25 |
Print this page |