[ic] Looping with alternate row
Jürgen R. Plasser
plasser at hexagon.at
Tue Sep 16 18:50:16 EDT 2003
--On 16.09.2003 17:05 +0200 Juergen R. Plasser wrote:
> Hi,
>
> How can I perform this tags right (in a [search-list]):
>
> [if value [item-increment] == 10]<p>This is 10</p>[/if]
>
> How can I compare the [item-increment] modulo 10 == 1?
>
> Seems that I have to dive into perl...
I have tried something like
[if explicit]
[condition]
$inc = '[item-increment]';
return 1 if ($inc % 10) == 1;
return 0;
[/condition]
This is 10.
[else]
This is not 10.
[/else]
[/if]
and it works...
Thanx,
Jürgen
More information about the interchange-users
mailing list