|
|
Ok, here's the code I have:
<cffunction name="classSort" output="false">
<cfargument name="eventType" type="string" required="yes">
<cfset item_1=#listgetat(eventType,1)#>
<cfset item_2=#listgetat(eventType,2)#>
<cfswitch expression="item_1">
<cfcase value="f">
<cfif item_2 gte 6 and item_2 lt 15>
<cfset retImage="Possible E1 event">
</cfif>
<cfif item_2 gte 15 and item_2 lt 25>
<cfif rates.C gte 2>
<cfif rates.B gte 2 or rates.D gte 2>
<cfif rates.A gte 2 and rates.B gte 2>
<cfset retImage="Possible A1 event">
<cfelseif rates.D gte 2 and rates.E gte 2>
<cfset retImage="Possible C1 event">
<cfelse>
<cfset retImage="Possible B1 event">
</cfif>
</cfif>
<cfelse>
<cfset retImage="Possible D1 event">
</cfif>
</cfif>
<cfif item_2 gte 25 and item_2 lt 64>
<cfif rates.A gte 2 and rates.B gte 2 and rates.C gte 2>
<cfset retImage="Possible A2 event">
<cfelseif rates.B gte 2 and rates.C gte 2 and rates.D gte 2>
<cfset retImage="Possible B2 event">
<cfelse>
<cfset retImage="Possible C2 event">
</cfif>
</cfif>
</cfcase>
<cfcase value="e">
Nothing right now
</cfcase>
</cfswitch>
<cfreturn retImage>
I have verified that the item_1 and item_2 variables are being set
correctly, item_1 is f, and item_2 is 15. The problem is that the cfreturn
isn't returning what is being set in the <cfif> statements.
|
|