My problem is a bit difficult to explain and I simpy can't wrap my head around it.
I need to write the result to a flat text file. But insteadt of having the file look like this:
Item name
Amount 3
I need to duplicate the result so it ends up like this
Item name
Item name
Item name
If of course the amount is 1 it shouldnt duplicate at all.
My fields looks like this:
Code: Select all
<Item name:>{$TAB}{$TAB}{if $itemname != "" && $itemname != "[mangler]" }{$itemname}{/if}
{if $amount != "" && $amount!= "[mangler]" }{$amount}{/if}

