skywind skywind - 9 months ago 81
Smarty Question

How to check iteration in smarty?

How can I check the current iteration for foreach and do something?

{foreach $new_products as $product name=foo}
{if $}
Do it!

This always return not checked

Answer Source

I think you should do {if $ == 5} (note the ==).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download