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}
[solved] "If" and "else" in File-Template
[solved] "If" and "else" in File-Template
Last edited by fredlund on Thu Jun 04, 2009 12:11 am, edited 1 time in total.
Re: "If" and "else" in File-Template
Smarty doc {if}{else}{/if}fredlund wrote: I need help with an foreach loop in an template,
Alby
Re: "If" and "else" in File-Template
tnx alby,
I have solved this problem.
have a nice day!
best regards
Fredlund
I have solved this problem.
have a nice day!
best regards
Fredlund
Re: "If" and "else" in File-Template
great fredlund! you can add [solved] to the post title so other can find this solution too
Regards
Regards