The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
exiting a loop early
i saw mist ask for this once but couldn't find the thread
anyhoo i have a loop but i want to exit it early as the query it's using is used for a few more things other than this loop. i.e. table = 20 rows, loop = 4 rows not sure about the best way to explain it but if someone could tell me how to do this i'd be eternally grateful |
#2
|
||||
|
||||
Quote:
In a while(), for() or foreach() loop you can use break; to break out of it. Pseudo-code: PHP Code:
|
#3
|
||||
|
||||
thanks tubedogg, it was indeed a while
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|