Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WHILE Loop vs FOR/NEXT Loop
#2
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.
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

Forum Jump:


Users browsing this thread: 1 Guest(s)