Testing for 'undefined'

Monkey Forums/Monkey Programming/Testing for 'undefined'

Volker(Posted 2011) [#1]
I'm using mnet to retrieve my online highscores.
If the server is not reachable, in HTML5 and android
no empty string is returned, but 'undefined'.
Not as string but as datatype (like NULL).
How can I test for this?


c.k.(Posted 2012) [#2]
Volker, did you ever resolve this?

I've got mnet returned an undefined value when it can't find the URL. How should that be handled?


Volker(Posted 2012) [#3]
Xaron wanted to include my solution into mnet.
As far as I can see there is a method GetResult() in mnet.Http
Try this to receive a error string.

My old solution is here:
http://www.monkeycoder.co.nz/Community/posts.php?topic=1937#18408


c.k.(Posted 2012) [#4]
Ah, thanks! I'll check out GetResult().