Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I dare you...
#21
The SICK64 example is trying to jump out of both "FOR... NEXT" loops. "EXIT FOR" would just jump out of the innermost one, and after that it would require an IF statement to check a flag in the least so it could jump out of the outer loop. While inside the innermost loop must have a flag which is usually set to zero, and set to -1 or 1 only for the purpose of breaking out of "everything". That's so that the flag could be checked later.

Otherwise use "GOTO". (shrugs)

Freebasic could do "EXIT FOR, DO, FOR, DO" which is more typing and confusing, but some people like many levels of nesting in their parsers and other such routines.
Reply


Messages In This Thread
I dare you... - by eoredson - 03-16-2023, 12:41 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 12:52 AM
RE: I dare you... - by TerryRitchie - 03-16-2023, 12:55 AM
RE: I dare you... - by eoredson - 03-16-2023, 01:52 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 01:59 AM
RE: I dare you... - by PhilOfPerth - 03-16-2023, 02:18 AM
RE: I dare you... - by eoredson - 03-16-2023, 02:29 AM
RE: I dare you... - by eoredson - 03-16-2023, 03:17 AM
RE: I dare you... - by SMcNeill - 03-16-2023, 03:32 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 02:09 PM
RE: I dare you... - by SMcNeill - 03-16-2023, 03:23 PM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 05:27 PM
RE: I dare you... - by eoredson - 03-16-2023, 03:33 AM
RE: I dare you... - by eoredson - 03-16-2023, 03:41 AM
RE: I dare you... - by aurel - 03-16-2023, 08:04 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 02:13 PM
RE: I dare you... - by luke - 03-16-2023, 09:00 AM
RE: I dare you... - by RhoSigma - 03-16-2023, 09:57 AM
RE: I dare you... - by aurel - 03-16-2023, 02:33 PM
RE: I dare you... - by aurel - 03-16-2023, 05:47 PM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 06:25 PM
RE: I dare you... - by aurel - 03-16-2023, 06:39 PM
RE: I dare you... - by aurel - 03-16-2023, 07:14 PM
RE: I dare you... - by eoredson - 03-16-2023, 09:06 PM
RE: I dare you... - by eoredson - 03-16-2023, 10:06 PM
RE: I dare you... - by vince - 03-17-2023, 05:26 AM
RE: I dare you... - by aurel - 03-17-2023, 07:22 AM
RE: I dare you... - by vince - 03-17-2023, 02:53 PM
RE: I dare you... - by eoredson - 03-18-2023, 02:09 AM



Users browsing this thread: 27 Guest(s)