<cfset sep2 = "">
<cfoutput query="WADAdboartikel">
<cfset newRZOLL_ID = trim(RZOLL_ID)>
<cfif not len(newRZOLL_ID)>
<cfset newRZOLL_ID = "-">
</cfif>
<cfset mylist = newRZOLL_ID &","& arter_ID>
<cfset arr = listToArray(mylist, ",", true)>
<cfdump var="#arr#" label="Elements before the loop">
<cfloop index="myfield2" array="#arr#">
<cfif len(trim(myfield2))>
#sep2##ltrim(myfield2)#<cfset sep2=",">
</cfif>
</cfloop>
</cfoutput>
|