{section} How to end section loop early....
Hi all,
I have a section that is looping through 1000's of records. When I find what I want, how do I exit the loop. ???
Any ideas ? As I cacnot seem to find anything on this.
Example:
Array is $test
{section name=test loop=$test}
{if $test[test] eq $my_parm}
then I want to exit the loop ! How ?
{/if}
{/section}
Any info would be great.
__________________
All versions of X-Cart
Been in eCommerce 10 years, Coding, PM, SEO, Social. X-Cart 11 years. IT 30+ years.
Head of Web Dev for Australia's largest eCommerce 2 years.
Attended conferences, Velocity 2009 US, CeBit 2009, MySQL 2010 US, Online Retailer 2010, Web 2.0 2011 US, MySQL 2012 US (Percona).
Specialise in High Performance, High Volume, PHP, MySQL, HTML, CSS, JAVASCRIPT, SMARTY, MEMCACHED, APACHE, LIGHTTPD, FREEBSD, LINUX.
Email your requests to xcart@gazwebtech.com
|