[solved] "If" and "else" in File-Template
Posted: Thu Apr 30, 2009 1:14 pm
Hi,
I need help with an foreach loop in an template,
i want to check what the value in the parent was,
something like:
{if $entry->val1 == $entry->parentvalue}
is that posible ?
{foreach from=$records item=entry}
{$entry->val1}
{$entry->val2}
{$entry->val3}
{$entry->val4}
{$entry->val5}
{$entry->val6}
{/foreach}
I need help with an foreach loop in an template,
i want to check what the value in the parent was,
something like:
{if $entry->val1 == $entry->parentvalue}
is that posible ?
{foreach from=$records item=entry}
{$entry->val1}
{$entry->val2}
{$entry->val3}
{$entry->val4}
{$entry->val5}
{$entry->val6}
{/foreach}