HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

For each (Integer A) from 1 to 1, do (Actions)...

02-02-2005, 12:13 AM#1
QuakeII_best
For this loop... if Poll_VotesLoopCounter = 1... will it cause any problems?

Code:
For each (Integer A) from 1 to Poll_VotesLoopCounter, do (Actions)
    Loop - Actions
Blah Blah Blah
Will a loop of that kind:
a) Will not run and/or will cause errors...
b) Will run once
c) Will run indefinetly
d) Any other option?
02-02-2005, 12:16 AM#2
Guest
Quote:
Originally Posted by QuakeII_best
For this loop... if Poll_VotesLoopCounter = 1... will it cause any problems?

Code:
For each (Integer A) from 1 to Poll_VotesLoopCounter, do (Actions)
    Loop - Actions
Blah Blah Blah
Will a loop of that kind:
a) Will not run and/or will cause errors...
b) Will run once
c) Will run indefinetly
d) Any other option?

From what I understand, it should run once - as though there is no loop as such.
02-02-2005, 07:14 AM#3
D0nk1ckh0t
It will run once, as expected, I used that in a map.