(06-21-2023, 12:32 AM)TerryRitchie Wrote: Interesting use of EVERYCASE. I haven't used it yet simply because I've never really thought about it's usefulness. Thanks for the demo.
Edit: By the way, does anyone know in which version of QB64 EVERYCASE was introduced? The Wiki forwards me to SELECT CASE when I search for EVERYCASE.
I'm not sure exactly when EVERYCASE was implemented, but I'm pretty sure it was one of Clippy's requests and it came to be right around the end of SDL / beginning of GL.
EDIT :
From the QB64GL v1000 help files dated 02-22-2014 :
Quote:(partial)
'''SELECT CASE''' is used to determine the program flow by comparing the value of a variable to specific values.
{{PageSyntax}}
:::::SELECT CASE variable
::::::' [[CASE]]
::::::' [[CASE IS]]
::::::' [[CASE ELSE]]
:::::[[END SELECT]]
From the QB64GL v1.1 help files dated 03-18-2016 :
Quote:(partial)
'''SELECT CASE''' is used to determine the program flow by comparing the value of a variable to specific CASE values.
{{PageSyntax}}
:::'''SELECT''' [EVERY]'''CASE''' ''checkvalue''
::::[[CASE]]
::::[[CASE IS]]
::::[[CASE ELSE]]
:::'''[[END SELECT]]'''