Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Pos and modulo


2 Posts   1489 Views


6 November 2008 at 2:03am Community Member, 22 Posts

I need to highlight every third record returned to a template. I'm using this syntax:

<% control getMemberProjects %>

<% if Pos%3==0 %>
<% end_if %>

<% end_control %>

There is no way to perform modulo or anything more complex than equality with the if statement in the template. Any ideas how to handle this?


6 November 2008 at 3:17am Community Member, 787 Posts

A solution would be to alter your dataobjectset in your class by using the customise function (

It is a kind of dirty hack , but you could for example add a booleon to your dataobjectset which you use in the template to decide whether or not to hi-lite the row.

Good luck !