OR OR OR

How can i get the last match of the loop over the structure

73 Views Asked by At

i am running a loop :

<cfset rulecounter = 1>
<cfloop collection="#mystucts#" index="key">

<cfif rulecounter neq thevaluewhere it should match>
OR
</cfif>
<cfset rulecounter = rulecounter + 1>
</cfloop>

so trying to do a match here if it is the last item in struct, do not add OR, else keep adding OR

0

There are 0 best solutions below