Nothing getting carried out after setting a variable

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.

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?

1 Like

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

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

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

1 Like

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.

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

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

I am on firefox 88 i think in linux

Ya i tried live testing it samething


before i was just using preview

1 Like

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

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

1 Like

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

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.

1 Like

Thanks! I’ve updated my code.

I’ve tried both. Nothing is working.

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.

1 Like

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

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

https://x.thunkable.com/projectPage/609a8f7cbaf8030aab38f25c

1 Like

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.

1 Like

Wait, what is the problem?

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.