Function NOT not found

Description

BoxLang Bleeding Edge, also on Trycf
See


<cfif NOT (1 IS 2)>
HELLO
</cfif>

Error:
Function [NOT] not found on line 1

Activity

Show:

Brad Wood February 24, 2025 at 8:08 PM

Ok, I’m a little fearful to change this as it will likely just break someone else using not() as a proper function, but I’ve made not an exception so it’s basically never taken as a headless function call, but always considered to be the keyword. All the test are still passing so we’ll roll it out and see what happens

Brad Wood February 24, 2025 at 7:43 PM

Hmm, this is one of those very ambiguous things where that code is a total legitimate method call with a singular positional parameter being passed. We basically can’t allow not() to be used as a headless method call while still being allowed to negate a parenthetical expression.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created February 24, 2025 at 10:38 AM
Updated February 24, 2025 at 8:55 PM
Resolved February 24, 2025 at 8:55 PM