05-04-2023, 09:51 PM
(This post was last modified: 05-04-2023, 09:52 PM by TerryRitchie.)
(05-04-2023, 09:23 PM)James D Jarvis Wrote: Or maybe use Select Case?
Code: (Select All)For i = 1 To 15
a$ = Str$(i)
Select EveryCase i
Case Is > 5
a$ = a$ + " " + Str$(i * 2)
Case Is > 10
a$ = a$ + " " + Str$(i * 3)
End Select
Print a$
Next i
Yeah, SELECT CASE is my go to as well when ELSEIF comes into play with my IF ... THEN statements.
Hey! When was EVERYCASE added to SELECT CASE?? Holy cow, how do I miss these things? I can definitely make use of EVERYCASE.
I think it's time I take a journey through the Wiki to see what other gems were added that I somehow missed.