1
phillipd
Where is the 'next' or 'continue' in smarty?
  • 2004/11/4 8:29

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Looking on the smarty FAQ page under item 23:

23. Where is the 'next' or 'continue' in Smarty's loops, to skip to the next iteration?

There is no answer for this question. Anyone have a clue how to skip to next iteration if desired?

Thanks

Doug P

2
Mithrandir
Re:Where is the 'next' or 'continue' in smarty?

Next iteration of what?

3
ackbarr
Re:Where is the 'next' or 'continue' in smarty?

I believe he is looking for the smarty equivalent to break() or continue(). AFAIK there isn't any.

4
phillipd
Re:Where is the 'next' or 'continue' in smarty?
  • 2004/11/4 14:22

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Yes exactly, I'm needing to do the equivalent of a "next" or "continue" in a smarty foreach or section. This multi column layout problem is kickng my but... I did find this:

http://smarty.incutio.com/?page=SmartyColumnsTutorial

But I'm having a hard time, being new at this, to relate it to XOOPS and checckboxes.

Thanks

Doug P (A rank beginner, but learning all the time)

5
Dave_L
Re:Where is the 'next' or 'continue' in smarty?
  • 2004/11/4 14:38

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


A workaround is to use an "if" inside the loop, to skip processing for certain iterations.

An alternative is to set up the loop-array ahead of time so that that's not necessary.

Login

Who's Online

155 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits