Trey Rouse wrote:
>
> I understand that not(isdefined("var')) and not isdefined("var") are
> interchangable.
They are not interchangeable, they are identical. What really
happens is the following expansion:
not(isdefined("var'))
not (isdefined("var'))
not isdefined("var')
Not() is not a function. It is the negator not followed by
parenthesis. (I hope negator is the correct word here.)
> My problem is, I've received code from a contractor that uses not() somewhat
> liberally. And in fact, the use of not seems to have very different results
> on different versions of CF.
>
> Here is what looks like benign code using not():
>
> <cfinput type="radio" name="is_accepted" value="0"
> checked="#Not(IsAccepted)#">
>
> Problem here is why my first example of not() works fine in 5.0, this
> example bombs with invalid parser contruct.
Correct. This expands as follows:
checked="#Not(IsAccepted)#"
checked="#Not (IsAccepted)#"
checked="#Not IsAccepted#"
This is not valid syntax in CF 5.
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:214996
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54