Adam Cameron
• Strings (a zero length string will return)true
• Arrays (an array with no elements will return)true
• Structs (a struct with no keys will return)true
• Query (a query with no rows will returnIt also checks null. Possibly worth mentioning? Am happy to make the change myself unless I'm missing something or it's not actually supposed to? Checking a bit more thoroughly: https://trycf.com/gist/541cd1f2115559fedc6753471aa8e282/lucee5?theme=monokai It also identifies empty XML. And whilst it claims to take "any" type for the parameter value, it doesn't. It errors-out on a function (either defined via a statement or an expression).)true
dswitzer
04/20/2022, 11:44 AMAdam Cameron
any
then it should not error on some types. Or at least it should not error with "wrong param type", it should error with a CannotDetermineEmptinessException (not that exact name), or just return false
, and be documented as saying "any other data type eg binaries, functions, etc will return `false`"