Ajax.Lastdata question

Get help using Construct 2

Post » Wed Oct 25, 2017 7:30 pm

I have about 50 ajax requests in my game, all work fine (so no issue there).

My question is this: When Ajax is called and returns "None" is there an easy way to compare this for a condition?
I have tried:
tokenat(AJAX.LastData,0,"|") not equal to "None"
AJAX.LastData not equal to "None"
AJAX.LastData not equal to 0
AJAX.LastData not equal to ""

(on a side note, null returns in ajax are squirrely, sometimes the have a space at the end, sometimes not depending...and no rhyme or reason I can tell)
B
12
S
2
Posts: 42
Reputation: 694

Post » Wed Oct 25, 2017 7:44 pm

As almost every time I ask a question, simple answer...

I changed the echo on .php to 111 and compared to 111

Closed
B
12
S
2
Posts: 42
Reputation: 694


Return to How do I....?

Who is online

Users browsing this forum: mikewalton206 and 8 guests