![]() |
Forum Index : Microcontroller and PC projects : Newie got a few questions
![]() ![]() |
|||||
Author | Message | ||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3314 |
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 |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |