Difference Between Variable Elements and Local Storage Manager Variables

Hey everyone…

So I can create a variable element:

variable

Or I can create a Local Storage Item which is a Variable:

local_storage

Is there any difference between how the two will behave?

Any pros and cons of using one versus the other for a boolean kind of function like showing/hiding a section of code?

Do I assign to each of them in the same format?

Best wishes,

Antony.

A local variable is only available for the current loading of that page. If you refresh the page, it will return to its default value, whatever you have set that to be. Local storage is writing values back to the client browser so it would be retained across page loads, and across sessions.

4 Likes