...<iw_if expn='{iw_value name="$n"/} % 2 == 0'>...
my $list_size = scalar(@list);my $half = $list_size / 2;$half++ if ($list_size % 2); # put the bigger half on the leftmy $idx = 0;while ($idx < $half){ ... left-column $list[$idx] ... if ($idx + $half < $list_size){ ... right-column $list[$idx+$half] ... } $idx++;}