In <001501bfa546$4fea1d60$[EMAIL PROTECTED]>, Steve Reich 
([EMAIL PROTECTED]) in a fit of unbridled passion, wrote:
> so which would be correct...
> 
> If...
> <cfcookie name="permissionid" value="10" expires="NEVER">
> 
> then...
> <cfif cookie.permissionid EQ 10>
> 
> or...
> <cfif cookie.permissionid EQ "10">

Both are correct.

However, when you use the integer (someone please correct me if I'm 
wrong) for comparisons, specifically less than or greater than, it is 
numeric.  If you use a string for a lt or gt, then the comparison is 
made alphabetically.  

Thus, <cfif "90" gt "10000"> returns true where as <cfif 90 gt 10000> 
returns false.


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to