It's at the bottom of THIS age.
Develop games in your browser. Powerful, performant & highly capable.
janlindso Drag the folder to the Behaviours folder, not Plugins.
If the data is out of you control, you can also use int() to convert the string to a number.
Your data is all in quotes which makes them strings, so comparing against a number won't work. Either compare to "10" or get rid of the quotes to make your data numbers.
I think I see now - you want Load from JSON: WebStorage.LocalValue("A")
"A" is not a valid JSON string. Have a look at my example. If you want to initialize the array, do so as I did in the first example and then save that AsJSON, then load that from WebStorate to get it back.
From JSON: http://www.blackhornettechnologies.com/ ... _JSON.capx
Works fine:
That doesn't work. Just tried it.
That's correct. (Hey I'm just the messenger )
In the order they are included, the last being the master (Main, in your case).
Member since 28 May, 2012