[OS-webwork] Subset and Iterator tags

2004-01-20 Thread Rich
Let's say I had something like below: What this is trying to do is display images. I would like it to display only a certain amount per row, defined by the variable "maxThumbsPerRow". I figured the best way to do this would be to check if "@status/index" divided by "maxThumbsPerRow" is

Re: [OS-webwork] Subset and Iterator tags

2004-01-20 Thread Hani Suleiman
You're better off using the mod operator, something like if status % 3 == 0 then br (for 3 items per line), so in your case it'd be (from memory, so exact syntax might be wrong) ww:if test=@status % maxThumbsPerRow == 0br/ww:if Rich wrote: Let's say I had something like below: What this is

Re: [OS-webwork] Subset and Iterator tags

2004-01-20 Thread Scott Farquhar
The correct syntax would be: ww:if test=@status/modulus(maxThumbsPerRow) == 0) More information here: http://www.opensymphony.com/webwork/api/webwork/view/taglib/IteratorStatus.html Cheers, Scott On Tue, Jan 20, 2004 at 12:57:13PM -0500, Hani Suleiman wrote: You're better off using the mod