# 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:** 20\
**Page:** 2

<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, 7:16am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/26 "2021-05-11T07:16:35Z")

</div>

No, I just want to allow the user to select an option, and then set a variable’s value according to which checkbox was checked.

---

<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, 7:18am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/27 "2021-05-11T07:18:16Z")

</div>

Let me rephrase, you are checking if the button’s text is a tick and then setting it to a tick. Shouldn’t that be the opposite?

---

<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, 7:19am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/28 "2021-05-11T07:19:21Z")

</div>

Oh yes! Thanks for catching that. I have changed it now.

---

<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, 7:20am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/29 "2021-05-11T07:20:52Z")

</div>

Somehow, it isn’t setting the button’s text to (empty text).

---

<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, 7:21am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/30 "2021-05-11T07:21:21Z")

</div>

I get label 1’s text as label so i don’t see a problem here at all!

---

<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, 7:23am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/32 "2021-05-11T07:23:32Z")

</div>

I don’t get any text in my label. Which browser are you on?

I have checked a box, but Label1’s text is still 50 words.

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

---

<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, 7:26am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/34 "2021-05-11T07:26:40Z")

</div>

Wait the label which used to have 50 words gets set to label

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/789d1c0272a664214bc5e23289b0ceef1d3f16f5.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, 7:27am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/35 "2021-05-11T07:27:32Z")

</div>

It remains “50 words” for me. What browser are you on?

---

<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, 7:29am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/37 "2021-05-11T07:29:19Z")

</div>

I am on firefox 88 i think in linux

Ya i tried live testing it samething

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/1/31b05bd07c8979660d8fd9e774bb98e0522dc8f3.png)  
before i was just using preview

---

<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, 7:29am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/38 "2021-05-11T07:29:20Z")

</div>

I’m on Chrome, on a Windows computer. Could that be the problem?

---

<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, 7:29am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/39 "2021-05-11T07:29:44Z")

</div>

unlikely, try refreshing or use the preview as responsive web app

---

<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, 7:29am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/40 "2021-05-11T07:29:57Z")

</div>

My label stays the same on both Live Test and Preview.

---

<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, 7:51am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/41 "2021-05-11T07:51:50Z")

</div>

Hey again,  
I found why you couldn’t unselect all. It is because of the else in your code, i’ll attach a screenshot. You don’t need the else at all.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/02eac4bbfdb7c6440cc8f6c2419cf588514b9414.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, 9:56am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/43 "2021-05-11T09:56:59Z")

</div>

Thanks! I’ve updated my code.

I’ve tried both. Nothing is working.

---

<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, 10:01am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/44 "2021-05-11T10:01:54Z")

</div>

Last resort is incognito or try another browser. Not sure if it will work but i’ll guarantee there is no problem with your code.

---

<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, 10:07am UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/45 "2021-05-11T10:07:58Z")

</div>

@domhnallohanlon Is this a bug? This variable is behaving really weirdly.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 11, 2021, 2:16pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/46 "2021-05-11T14:16:44Z")

</div>

@codeswept can you try this and see how it works for you?

[https://x.thunkable.com/projectPage/609a8f7cbaf8030aab38f25c](https://x.thunkable.com/projectPage/609a8f7cbaf8030aab38f25c)

---

<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:09pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/47 "2021-05-11T15:09:02Z")

</div>

Yep, this works for me. What is the matter then?  
You could open my full project by searching for my username in the project gallery. It’s for WDC 14.

---

<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:14pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/48 "2021-05-11T15:14:30Z")

</div>

Wait, what is 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:15pm UTC](https://community.thunkable.com/t/nothing-getting-carried-out-after-setting-a-variable/1274119/49 "2021-05-11T15:15:34Z")

</div>

I have stated a lot of times that my stored variable is not saving, and no code after my set variable value is not executing.

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

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