Return null vs ""

Why am I not allowed to return a null value? Why do I have to use “” instead of null?

I want to return null since I’m sending this to my API call

I think if you do JS it should work. Or try (condition) ? [profile_pic] : null, this is an alternative to what you wrote.

1 Like

Actually, Xano was able to identify that “” is the same as null I think

Do you normally use the JS section instead of the formula?