# Switch and cloud variable

**URL:** <https://community.thunkable.com/t/switch-and-cloud-variable/736548>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, question\
**Created:** [August 12, 2020, 4:03pm UTC](https://community.thunkable.com/t/switch-and-cloud-variable/736548 "2020-08-12T16:03:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [August 12, 2020, 4:03pm UTC](https://community.thunkable.com/t/switch-and-cloud-variable/736548/1 "2020-08-12T16:03:47Z")

</div>

Hi All,

If anyone can advise what wrong with my block. I am using switch component and has cloud variable on it. when slide on switch=true it write “online” and if switch =false it will write "offline"the problem when it came to target page where it need to be display. it went to other a way around.

page 1  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/68b6987c1baedf337a99758ab7150aa4452dd7d9.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/0/b0f1b1221488cba5ea11a9a554d7d51a481edecc.png)

page2  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/92d806a118f26e9244d08767f5a50ee8f6ef6192.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4be83609a819f6ec55ff26ab14a5a4a03766b4c5.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 13, 2020, 9:15am UTC](https://community.thunkable.com/t/switch-and-cloud-variable/736548/2 "2020-08-13T09:15:40Z")

</div>

Hi,

use the “newValue” block". Use the stored variable instead of Local Storage

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [August 16, 2020, 10:26am UTC](https://community.thunkable.com/t/switch-and-cloud-variable/736548/3 "2020-08-16T10:26:38Z")

</div>

Actech,

thank you for advice it worked.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/57e7d1bad054aa97f4cb08c98bf7c15fc1c75402.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:26pm UTC](https://community.thunkable.com/t/switch-and-cloud-variable/736548/4 "2024-11-08T12:26:39Z")

</div>


