08-17-2024, 11:28 PM
(08-17-2024, 03:35 PM)SMcNeill Wrote: In such cases, I try to go with SELECT CASE, nested between IF statements, just for the difference in visibility of flow for me.
Too many ELSEIFs, and I get lost trying to track and keep up with them all. Instead, I'll swap to independent IFs and GOTOs, to keep my brain organized better.
IF (condition) THEN
stuff
GOTO done_iffing_around
END IF
IF (next condition...
same
IF (same for 4 more ELSEIF type things...
same
END IF
done_iffing_around:
GoTo??? Wash yer mouth out!
I've gotten the impression I'm about the only one who uses this outdated command!
![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) ![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Please visit my Website at: http://oldendayskids.blogspot.com/
![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Please visit my Website at: http://oldendayskids.blogspot.com/