Writes a 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.

write-variable-on-device-brick.png

Correlates with this brick:

read-variable-from-device-brick.png

Learn more >>

Example

Writes the current score on the device storage. When opening the scene, the score is read from the storage.

read-variable-from-device-example.png

 

Result

Download

read-variable-from-device-example.gif