Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 11:35 07 May 2024 Privacy Policy
Jump to

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 States
Posts: 3019
Posted: 05:06pm 07 Jan 2021
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024