null
is Java's way to refer to "nothingness.", something that does not exist and has no value. Support for thenull
keyword itself was introduced as an option in ColdFusion 2018 (as discussed in this blog post) and has existed as an option in Lucee (as discussed in this guide).isNull()
method to evaluate for nothingness and use the null
keyword to create a null value (ACF 2018+, Lucee 4.1+). In previous versions, use the function call javaCast( "null", "" )
for ACF or in Lucee you can use the nullValue()
function. Take note that in Adobe CF 2018+ you must enable the setting.null
.