Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SELECT/CASE ... END SELECT
#2
(08-26-2020, 03:55 PM)Neurox66 Wrote: Hi,
I would like to see  available on the ZX Basic the control flow statements SELECT/CASE ... END SELECT

Code:
Select Case Answer$
    Case "YES"
        ...
    Case "NO"
        ...
    Case "MAYBE"
        ...
    Default
        ...
End Select

Thanks,
Paolo

This is planned, but not implemented.
In the meantime try using
Code:
IF

ELSEIF

ELSEIF

ELSE...

(notice ELSEIF is written with no spaces)
Reply


Messages In This Thread
SELECT/CASE ... END SELECT - by Neurox66 - 08-26-2020, 03:55 PM
RE: SELECT/CASE ... END SELECT - by boriel - 08-27-2020, 06:56 AM
RE: SELECT/CASE ... END SELECT - by Neurox66 - 08-27-2020, 03:43 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)