Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Localstorage variable: undefined

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.

Christian7402253
Posts: 0
Joined: Wed Feb 25, 2015 8:13 pm

Localstorage variable: undefined

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")"

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Localstorage variable: undefined

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");
}

Christian7402253
Posts: 0
Joined: Wed Feb 25, 2015 8:13 pm

Localstorage variable: undefined

So that's how it goes, thanks :D I have another question, should I post it in a new topic or can I post it here?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Localstorage variable: undefined

Christian,

Perhaps it will be better to start a new topic.

Return to “Issues”