Hey there! I am using the noblox.js package, and I am wondering how to tell if something doesn’t exist and how to call that using javascript.
Example: I’m using noblox.getPlaceInfo(), and when there is no place in the console, it logs “No place found”, but how can I call that using javascript?
Thanks so much!
Try checking if the value is undefined. Try setting a variable to the getPlaceInfo function and act like it’s returning something. Then run an if statement checking if it is undefined.
that still doesn’t work for me
edit: i found a solution by finding if it existed and catching if it didnt
Ah well, I said something similar.