# Nothing getting carried out after setting a variable

**URL:** <https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119>\
**Category:** Questions about Thunkable X\
**Created:** [May 10, 2021, 1:33pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119 "2021-05-10T13:33:38Z")\
**Posts on this page:** 17\
**Page:** 3

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 11, 2021, 3:17pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/50 "2021-05-11T15:17:18Z")

</div>

@codeswept  
If I’m not mistaken, stored variables in Thunkable follow the same rules of JavaScript variables which can “cast” (change) only between basic types. This means you can store Text, Boolean, Numbers and Null interchangeably but you can only change to the advanced types (list and object) from a **null**. So if the variable holds a list or an object you will have to first make it **null** to be able to assign a text or a number to it.

That is my theory of the problem.

Somewhere in your code you are giving this stored variable a value of a list or an object and this prevents it from being changed to another type.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 11, 2021, 3:20pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/51 "2021-05-11T15:20:24Z")

</div>

@muneer Thanks for the detailed explanation! The code which I have shared above is the first instance of setting the stored variable’s value in the app. I am creating a checkbox function to save a daily word count target. I’m retrieving that value using the any component blocks. But regardless of list or object, if I set my variable to “hello” and try to display it, nothing happens.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 11, 2021, 3:22pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/52 "2021-05-11T15:22:29Z")

</div>

Are you using an object or Base64 to show your **Tick**? This code be the source of the problem.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 11, 2021, 3:23pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/53 "2021-05-11T15:23:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/3/1377d77fe9195265fe0dac97d381c354b86dfe74.png)  
Just copied the tick text from Google.

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 11, 2021, 3:24pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/54 "2021-05-11T15:24:18Z")

</div>

Can @domhnallohanlon and @muneer confirm because i am seeing label1’s text as label

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 11, 2021, 3:25pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/55 "2021-05-11T15:25:00Z")

</div>

Can you replace the **Tick** with any normal character such as “x” just to test?

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 11, 2021, 3:25pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/56 "2021-05-11T15:25:38Z")

</div>

Sure, am doing that right now.

**Edit: @muneer My label hasn’t changed.**

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 11, 2021, 3:25pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/57 "2021-05-11T15:25:43Z")

</div>

> [@backscratcher2007](#):
>
> i am seeing label1’s text as label

I didn’t get what you mean.

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 11, 2021, 3:27pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/58 "2021-05-11T15:27:47Z")

</div>

check out her project, everything works fine for me.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/dab460ec206a2006c8c4b4dc4a57ff899e8d66c4.png)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 11, 2021, 3:28pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/59 "2021-05-11T15:28:21Z")

</div>

Check out whose project?

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 11, 2021, 3:29pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/60 "2021-05-11T15:29:27Z")

</div>

your project

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 11, 2021, 3:29pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/61 "2021-05-11T15:29:47Z")

</div>

Can you send me the link to your project to check it myself.

Please note for stored variables, you will need to change the variable name before testing to avoid the previously stored value.effecting the test.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 11, 2021, 3:30pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/62 "2021-05-11T15:30:08Z")

</div>

Oh, were you responding to @muneer ?  
(Aside: I’m a ‘she’)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 11, 2021, 3:30pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/63 "2021-05-11T15:30:58Z")

</div>

Sure, I’ll share it with you.

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 11, 2021, 3:33pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/64 "2021-05-11T15:33:02Z")

</div>

thats what i said 😄

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 11, 2021, 8:24pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/65 "2021-05-11T20:24:25Z")

</div>

I might be able to help, too. What’s the name of your project?

---

<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, 1:22pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/66 "2024-11-08T13:22:38Z")

</div>



[Previous page](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119.md?page=2)
