Page 2 of 2
Localstorage variable: undefined
Posted: Mon Mar 02, 2015 11:13 am
by Evgene Karachevtsev
Hello Christian,
[quote:]Storage API you linked, is that different from the Local storage variable?[/quote]
Yes, absolutely.
With Appery.io storage you can easily map your variables, change it or set it with mapping with new value.
Localstorage variable: undefined
Posted: Mon Mar 02, 2015 4:07 pm
by Christian7402253
Wow I didn't know that. can you guide me how to use that? i'm sorta confused with:
" If storageVariable = {“FirstName”:”Sam”,”LastName”:”Dean”}: " and setting a value for it "Apperyio.storage.storageVariable.set("Sam Dean")"
Localstorage variable: undefined
Posted: Tue Mar 03, 2015 3:27 pm
by Evgene Karachevtsev
Hello!
Please try:
var tempVar = Apperyio.storage.myLSV.get() // now tempVar has {“FirstName”:”Sam”,”LastName”:”Dean”}
if (tempVar.FirstName == "Sam" && tempVar.LastName == "Dean") {
Apperyio.storage.my_second_LSV.set("Sam Dean");
}
Localstorage variable: undefined
Posted: Tue Mar 03, 2015 4:44 pm
by Christian7402253
So that's how it goes, thanks
I have another question, should I post it in a new topic or can I post it here?
Localstorage variable: undefined
Posted: Tue Mar 03, 2015 5:58 pm
by Evgene Karachevtsev
Christian,
Perhaps it will be better to start a new topic.