break loop in if condition

109 views
Skip to first unread message

ozgu...@gmail.com

unread,
Feb 21, 2015, 9:36:03 AM2/21/15
to rai...@googlegroups.com
Hello

I want to break loop in if statement.

My code is like ;


{loop="$slider.slider_data"}

<li >
{loop="$slider.slider_content"}
{if="$value.TYPE=='IMAGE' && $value.SLIDER_ID==$slider_id"}
<img src="{#SLIDER_IMG_URL}{$value.CONTENT}" >
{break}
{/if}

{/loop}

But this code not working. 

Federico Ulfo

unread,
Feb 21, 2015, 5:41:46 PM2/21/15
to raintpl
{break} is implemented n both Raintpl 2 and 3. Your code should work. Have you tried to run the {break} outside the {if}?

--
--
www.RainTPL.com
group at http://groups.google.com/group/raintpl
unsuscribe at raintpl+u...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "raintpl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raintpl+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages