The issue has to do with "dynamic evaluation" between the pound signs. In
CFMX you can do the following:

#1+2#

and it will output 3.  You can get more complex as well - including logic as
in

#not true#        (outputs no)
#not false#     (ouptputs yes)


This illustrates how NOT is not a function but an operand. The parenthesese
are incidental.

#not true#  is the same as #not (true)#  or #not(true)#   or the result of a
function call #not isdefined('foo')#.

In each case the result (if a scalar) is legal.  In CF 5 and earlier this
was not the case and would have required an "evaluation( )" encapsulation or
a SET statement that gave the server a straight path, as in:

 <cfset tmp = not true><br/>
 not true = #tmp#<br>
 <cfset tmp = not(true)>
 not(true) = #tmp#<br>

-Mark

Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.necfug.com
http://mkruger.cfwebtools.com




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215011
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