Posts: 714
Threads: 36
Joined: May 2022
Reputation:
13
I've tried everything again, but it doesn't work; I noticed that with the comma also yesterday.
"Or" seems really redundant since it doesn't seem to do anything. An "And Less" would be good: Case Is > 5500.00 And Less 7000.00 - Case Is > 5500.00 And 7000.00 <
This would work in the sample program (Select Case):
Available (purchase price) up to 6100.00 -> VW Polo
Available (purchase price) up to 7100.00 -> (Case Else) Not on offer
Posts: 1,616
Threads: 157
Joined: Apr 2022
Reputation:
77
Code: (Select All)
'This would work in the sample program (Select Case):
'Available (purchase price) up to and including 6100.00 -> VW Polo
'Available (purchase price) up to and including 7100.00 -> (Case Else) Not on offer
CLS
INPUT "Purchase Price: "; purchase_price
SELECT CASE purchase_price
CASE IS <= 6100.00
PRINT "VW Polo."
CASE 6100.01 TO 7100.00
PRINT "6100.01 TO 7100.00"
CASE ELSE
PRINT "Not an offer"
END SELECT
SLEEP
RUN ' Try another price.
If eggs are brain food, Biden takes his scrambled.