Solved
Count function
Why does the count() function return a 1 if I pass in a null? so when I run count({null}) this returns a 1 but to me I would logically think 0. Was hoping for someone to explain this to me, Thank you.
Why does the count() function return a 1 if I pass in a null? so when I run count({null}) this returns a 1 but to me I would logically think 0. Was hoping for someone to explain this to me, Thank you.
count() intentionally returns the length of an array including nulls. if you want to get the length of an array excluding nulls, then you would use length().


Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.