Friday 13 August 2004 3:47:10 am - 2 replies
Paul Forsyth
Friday 13 August 2004 4:30:35 am
Would this work (quickly written):
$knownValue="" $newArray=array(); {section var=Item loop=$oldArray} {section show=ne($Item, $knowValue)} $newArray|append($Item)} {/section} {/section} {set oldArray=$newArray}
It uses an extra array for this...
Eirik Alfstad Johansen
Tuesday 31 August 2004 11:49:01 am
Thanks a lot, Paul. BTW, here's the code I ended up with:
{let newArray=array()} {section loop=$node.object.parent_nodes} {switch match=$:item} {case match=128} {/case} {case} {let newArray=$newArray|append($:item)} {/case} {/switch} {/section} {/let}
Sincerely, Eirik Alfstad Johansen http://www.netmaking.no/
You must be logged in to post messages in this topic!