Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SELECT/CASE ... END SELECT
#1
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
Reply
#2
(2020-08-26, 04: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
#3
Hi Boriel,
thanks for the answer.
I'll test it

Paolo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)