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

read-variable-from-device-brick.png

Correlates with this brick:

write-variable-on-device-brick.png

Learn more >>

Example

When opening the scene, the score is read from the storage. Before closing the stage, the current score is written to the storage.

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

Result

Download

read-variable-from-device-example.gif