Yea,
<cfloop query="qry_show_event_sponsors">
#EventSponserName#<cfif qry_show_event_sponsors.currentrow neq
qry_show_event_sponsors.recordcount>,</cfif>
</cfloop>
----- Original Message -----
From: "Chris Martin" <[EMAIL PROTECTED]>
IS it possible to find the last item in a loop?
Right now I have this:
<cfloop query="qry_show_event_sponsors">
#EventSponserName#,
</cfloop>
Is it possible to check if the #EventSponsorName# is the last item in the
record set, and then not display the comma? I.E.
<cfloop query="qry_show_event_sponsors">
#EventSponserName#<cfif something>,</cfif>
</cfloop>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists