DAY 041: ELSEIF
#2
BASIC programmers are spoiled for choice!

Try programming in Lua where people have been groveling for years for something that looks like "switch()" in C. There are many user implementations. There is a "select()" function in Lua but quirky to use. It's just better to code with "if... then... elseif... else... end".

The "ELSEIF" is definitely a phenomenon of BASIC which is compiled rather than interpreted (ie. with line numbers).

LOL while line numbers were required in a program, "we" just used "GOTO". It's because some 8-bit BASIC's didn't even have "ELSE", let alone "ELSEIF".
Reply


Messages In This Thread
DAY 041: ELSEIF - by Pete - 12-21-2022, 02:29 AM
RE: DAY 041: ELSEIF - by mnrvovrfc - 12-21-2022, 04:08 PM
RE: DAY 041: ELSEIF - by SMcNeill - 12-22-2022, 01:55 AM
RE: DAY 041: ELSEIF - by Pete - 12-22-2022, 02:05 AM



Users browsing this thread: 2 Guest(s)