Stores the specified variable on the devices storage. This means that variables can be stored permanently, surviving the lifetime of the Pocket Code App and later can be recalled.

Continue scene Brick

Correlates with this brick:

write-variable-on-device-brick.png

Learn more >>

Example

This example stores the variable after 3 seconds before exiting the program. When starting the program, the variable will be loaded from the storage.

Continue scene Example 1
read-variable-from-device-example_2.png

Result

Download

Continue scene Result