Skip to main content
Known Participant
Feb 27, 2024 1:24 PM UTC
Solved

Issue with a!isNullOrEmpty() function

Hi All, I have noticed this behavior when we are passing list of nulls to a!isNullorEmpty it returns false. I know there are ways we can handle this but is this something fundamentally wrong with this function or not. (I know it is hundred times better than isnull() but still curious) 

stefanhelzle0001
Brainy
Feb 27, 2024 1:53 PM UTC

It just does not cover all the edge cases.

https://appian.rocks/2022/10/17/the-magic-of-null-checking/

2 replies

stefanhelzle0001
Brainy
Feb 27, 2024 1:53 PM UTC

It just does not cover all the edge cases.

https://appian.rocks/2022/10/17/the-magic-of-null-checking/

mikes0011
Brainy
Feb 27, 2024 2:51 PM UTC

This is because "list of nulls" is a corner case which would not always be considered "blank" - it could go either way depending on certain assumptions being made.

The Expression Guru