Number Range
Hi. I just have a simple number range and I want to output the results. What I have outputs the results, but for some reason, it only displays the first result. Why does it not display the correct result? Here's what I have:
<cfset X = 27>
<cfset Y = 37>
<cfif (#X# GT 35 LT 51 And #Y# GT 1 LT 35)>
<cfset Result = 200>
<cfelseif (#X# GT 1 LT 35 And #Y# GT 35 LT 51)>
<cfset Result = 300>
<cfelseif (#X# GT 35 LT 51 And #Y# GT 35 LT 51)>
<cfset Result = 100>
</cfif>
<cfoutput>
#Result#
</cfoutput>
Since X is 27 and Y is 37 it should output 300 as the result, but it outputs 200. Why is this? What do I do to fix this? Thanks.
Andy
