Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skipping within a For Loop
#1
Logically the answer to my question here is NO but embarrassment from asking stupid coding questions is my Forte.

When you have a loop control range, can you skip a specific step within the range? So for example the For Loop is 

For x = 50 to -50
   if x = 0 then next
Next

or if there may be a couple within the controlled range is there a way to

For x = 50 to -50
     if x = 10 or x = 0 or x = -10 then Next
Next

Thanks
Reply


Messages In This Thread
Skipping within a For Loop - by Dimster - 10-23-2022, 03:38 PM
RE: Skipping within a For Loop - by Pete - 10-23-2022, 03:46 PM
RE: Skipping within a For Loop - by SMcNeill - 10-23-2022, 03:49 PM
RE: Skipping within a For Loop - by SMcNeill - 10-23-2022, 03:52 PM
RE: Skipping within a For Loop - by PhilOfPerth - 10-23-2022, 11:03 PM
RE: Skipping within a For Loop - by a740g - 10-23-2022, 03:54 PM
RE: Skipping within a For Loop - by SMcNeill - 10-23-2022, 03:56 PM
RE: Skipping within a For Loop - by Pete - 10-23-2022, 04:15 PM
RE: Skipping within a For Loop - by Dimster - 10-23-2022, 04:48 PM
RE: Skipping within a For Loop - by Pete - 10-23-2022, 04:58 PM
RE: Skipping within a For Loop - by OldMoses - 10-23-2022, 06:08 PM
RE: Skipping within a For Loop - by Pete - 10-23-2022, 08:30 PM
RE: Skipping within a For Loop - by Dimster - 10-23-2022, 10:02 PM
RE: Skipping within a For Loop - by Pete - 10-23-2022, 11:36 PM
RE: Skipping within a For Loop - by OldMoses - 10-23-2022, 11:48 PM
RE: Skipping within a For Loop - by Pete - 10-24-2022, 12:11 AM
RE: Skipping within a For Loop - by mnrvovrfc - 10-24-2022, 11:18 AM
RE: Skipping within a For Loop - by Dimster - 10-24-2022, 03:52 PM
RE: Skipping within a For Loop - by mnrvovrfc - 10-24-2022, 07:16 PM
RE: Skipping within a For Loop - by Pete - 10-24-2022, 04:46 PM
RE: Skipping within a For Loop - by Dimster - 10-24-2022, 06:03 PM
RE: Skipping within a For Loop - by CharlieJV - 10-24-2022, 06:19 PM
RE: Skipping within a For Loop - by Pete - 10-24-2022, 06:27 PM
RE: Skipping within a For Loop - by mnrvovrfc - 10-24-2022, 07:11 PM
RE: Skipping within a For Loop - by Pete - 10-24-2022, 08:44 PM



Users browsing this thread: 20 Guest(s)