It should be noted that CF treats "Yes" and 1 and True (boolean value, 
not the string) as logical equivalents. So !0 might return "Yes" when 
output to the screen but that is the same thing to CF as 1 when it comes 
to boolean logic. Take the result and format for display as you wish 
using Int, Val, YesNoFormat, etc.

Judah

John Skrotzki wrote:
> Thanks Josh!  That is awesome - i like clean simple code ( getting
> spoiled with javascript as I dive deeper into that language lol )
> 
>> I just did a test and this works:
>> 
>> #Int(not 0)# returns 1 #Int(not 1)# returns 0
>> 
>> -- Josh
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289691
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to