Afaik, it should work fine.  Comparisons are operators, evaluated in
order with the rest of them (+, -, &, etc.)

Therefore for i = 5:

#i gt 0 lt 4# = #0 lt 4$ = Yes
#i eq 0 eq 1# = #0 eq 1# = No
#i eq 5 lt 4# = #1 lt 4# = Yes

..and so on.

-Joe

On Wed, 10 Nov 2004 23:56:21 +0000, Andy Jarrett <[EMAIL PROTECTED]> wrote:
> Came across a weird one (or so i think)
> 
> <cfset i = 5>
> <cfoutput>#i GT 0 AND i LT 4#</cfoutput>
> Returns NO - expected
> 
> <cfset i = 5>
> <cfoutput>#i GT 0 LT 4#</cfoutput>
> Return Yes - not expected
> 
> With the second snippet surely this should error??
> 
> Andy
> www.andyjarrett.co.uk
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183932
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to