paross1 wrote:
> Something like this?
>
> <cfloop list="#prodDetails.matchProds#"
index="matching" delimiters=",">
> <cfoutput>
> <cfif matching MOD 2 EQ 0>
> <a
href="/catalog/?ProductID=#matching#&Category=#URL.category#">
> #matching#</a><br />
> <cfelse>
> <a
href="/catalog/?ProductID=#matching#&Category=#URL.category#">
> #matching#</a> 
> </cfif>
> </cfoutput>
> </cfloop>
>
> Phil
>
Somewhat, except that I would just put the <cfif> block
around the <br/>
tag, not the entire <a...> tag that is the same in both
clauses.
But <cfif matching MOD 2> does not work in this case.
Since this is a
list loop 'matching' is going to be a string containing each
element in
the list.
One would need to either create an independent counter to be
used in the
MOD clause or use a listFind() function to get the numeric
position from
the list from which the string in 'matching' came.