Hi there,
I am trying to store a single variable to the local storage. To do that I first want to check whether the Database “LocalUser” is empty. If the Database is empty I want to create a new Database entry “New_localUser”.
So far I could not find a way to figure out whether “LocalUser” has an entry or not. Tried this in an IF condition: “IS_UNDEFINED(data.localUser[0].id)” . That always returns “true”, even if “data.localUser[0].id” exists.
Any ideas? Happy for any help.
Thank you,
Sönke