Sorry, that shoul dbe:

<cfoutput query="test">
<cfif (request.rowcount mod 3) eq 1>
<tr>
</cfi>
<td>record 1</td>
<cfif (request.rowcount mod 3) eq 0>
</tr>
</cfif>
</cfoutput>


----- Original Message -----
From: "Giles Roadnight" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 2:47 PM
Subject: Re: [ cf-dev ] IIF (DE) syntax


> I think you want this:
> <cfif (request.rowcount mod 4) eq 0>
>
> <cfoutput query="test">
> <cfif (request.rowcount mod 4) eq 1>
> <tr>
> </cfi>
> <td>record 1</td>
> <cfif (request.rowcount mod 4) eq 0>
> </tr>
> </cfif>
> </cfoutput>
>
> will give you 4 cells per row.
>
> ----- Original Message -----
> From: "Dave Phipps" <[EMAIL PROTECTED]>
> To: "ColdFusion User group" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 22, 2003 2:43 PM
> Subject: [ cf-dev ] IIF (DE) syntax
>
>
> > Hi,
> >
> > I am having trouble remembering the exact syntax when using IIF.  I am
> > outputting some records into a table format and I want to start a new
row
> > after every 3rd record.
> >
> > Like so:
> >
> > <cfoutput query="test">
> > <tr><td>record 1</td><td>record 2</td><td>record 3</td></tr>
> > <tr><td>record 4</td><td>record 5</td> and so on....
> > </cfoutput>
> >
> > How do I setup the iif to do this?
> >
> > Thanks
> >
> > Dave
> >
> >
> > --
> > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to