Hello everyone, I am trying to check if an email address entered on “#input3” is already existed to my Database collection.
So YES it can check and existing email and display an “ERROR” on #textRed, but when the query cannot find anything on the Database Collection so the results is null? or undefined? So if the query cannot find anything on Database it must show “SAVED” on #textRed.
But in my case it doesn’t show, means the results value is “unknown”.
I wish to know the value of results when the query cannot find anything on the Database Collection so I can make an if statement to save or not to save.
Thanks but it’s not working. When I entered a non existing email, the query won’t pass a result since it does not find an existing email. I just don’t know if it passes a result or a null value. I think the query result wont pass a null value or “empty result”