Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WHILE Loop vs FOR/NEXT Loop
#3
(03-13-2022, 11:22 AM)boriel Wrote: Both are nearly the same. But if you are using a counter variable within the WHILE loop, a FOR / NEXT will be optimal because it will increase the variable for you and this is optimized internally during the traduction to assembler.

Thanks for that
Reply


Messages In This Thread
WHILE Loop vs FOR/NEXT Loop - by RandomiserUsr - 03-12-2022, 10:05 AM
RE: WHILE Loop vs FOR/NEXT Loop - by boriel - 03-13-2022, 11:22 AM
RE: WHILE Loop vs FOR/NEXT Loop - by RandomiserUsr - 03-25-2022, 09:55 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)