# Stored variable - Unable to print - Urgent Help

**URL:** https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271
**Category:** Issues / Bugs
**Created:** [May 1, 2025, 2:20pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271 "2025-05-01T14:20:25Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 1, 2025, 2:20pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/1 "2025-05-01T14:20:25Z")

</div>

> **[Thunkable](https://x.thunkable.com/copy/9cb3ba2986ebac0f1c35dd2780f9eb8c)**

Simple operation involving Stored Variables is badly broken. It works intermittently. Please help. This was working 1 hour back. Quick help would be appreciated

---

<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: [May 1, 2025, 2:59pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/2 "2025-05-01T14:59:14Z")

</div>

Hello @anandavardhana57zwwl  
It works in my test.  
How did you test it?

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 1, 2025, 3:02pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/3 "2025-05-01T15:02:30Z")

</div>

Just as it is in Web preview on my Laptop. It did not work for my mentees too. It was very specific to stored variables.

---

<div class="post-metadata">

### Author: ![drishap24](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drishap24](https://community.thunkable.com/u/drishap24)
#### Post date: [May 1, 2025, 3:11pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/4 "2025-05-01T15:11:19Z")

</div>

> **[Thunkable](https://x.thunkable.com/copy/aabe151d8ad82ab217019c4344901727)**

@ioannis this is the original problem when we clicked MD nothing came.

---

<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 4, 2025, 3:11am UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/5 "2025-05-04T03:11:41Z")

</div>

1. What are the exact buttons you’re pressing in order?
2. What are you expecting to see after that?
3. What are you seeing instead?

I tested it but I’m not sure how you’re supposed to store values for the MD button retrieval.

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 4, 2025, 3:50am UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/6 "2025-05-04T03:50:30Z")

</div>

Thanks @tatiang

> **[Thunkable](https://x.thunkable.com/copy/cbed354175dc62832f8e4b83c1eff59f)**

Very simple: Please click Button1 - Does not Work, Button2 - Works, Button3- Works. My assumption is printing stored variable has some issues hence Button1 fails. Please comment.

---

<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 4, 2025, 8:51pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/7 "2025-05-04T20:51:35Z")

</div>

This is the result when I do that:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/78b39ab22190d2e7a4c38fb5760082174eac9908.png)

I don’t see how that’s a test of anything. You’re setting the stored variables at runtime every time the project starts. A better test is to set those values **once** and then see if they remain after quitting the app / closing the project.

And what I’m asking you is what do you want those three labels to show (if it **was** working)?

---

<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 4, 2025, 9:01pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/8 "2025-05-04T21:01:03Z")

</div>

Try this demo I made:

**Project link:** [Thunkable](https://x.thunkable.com/copy/73947b7d0f6f19ffb6ba2de2962542fb)  
(see the first screen)

**Screenshot:**

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/24dfccc507aac0cbf20891c83f09c78ff6c18b28.png)

**To use it:**

1. Type in a value at the top (or use the default value “Strawberry”).
2. Click `Save to stored variable`
3. Close the preview / quit the app.
4. Open the preview/app.
5. Click `Restore saved value`.
6. You should see the value that you saved before closing the app (e.g. “Strawberry”).

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 4, 2025, 10:18pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/9 "2025-05-04T22:18:58Z")

</div>

Apologies @tatiang now I realize the reason for the confusion. It does not work on webpreview but you are right it does work on mobile phones. That is the problem and during developing and testing phase things not working in web preview is a big pain. ☹

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/d/fddf47f6fa718d8003775adf1eef648f014cfff6.png)  
You can see my output on webpreview. There are many such issues/bugs in Thunkable, is there any solution for it? Or we just grin and bear it? 🙂 Thanks.

A note to myself if something seems odd to check it out on Mobile. Thanks again.

---

<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 5, 2025, 7:05am UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/10 "2025-05-05T07:05:05Z")

</div>

I don’t know how to answer your question because you haven’t stated clearly what the problem is.

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 5, 2025, 1:06pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/11 "2025-05-05T13:06:53Z")

</div>

> **[Thunkable](https://x.thunkable.com/copy/1249ccbbab6b4457bfad1e3de2d8fccb)**

Sorry, the problem is when using Webpreview method for testing an app, values stored in Stored variables do NOT get printed. In addition to that it blocks further execution as the as the last print statement also does not get printed. Please check the modified app I have enclosed.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/7832e21112d80a09589cf89970a633f913bc243a.png)

---

<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 5, 2025, 2:10pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/12 "2025-05-05T14:10:35Z")

</div>

In my demo project, I check to see if the stored variable is null when the screen opens. You need to do that for stored variables. You also need to set the stored variable **once**. Please review my demo because you’re still setting this up incorrectly.

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 5, 2025, 5:34pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/13 "2025-05-05T17:34:41Z")

</div>

Yes yours works perfectly well.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f5aaa271fead9794b99861f517dc831df2777075.png)  
The the only diff between yours and mine is, you do it as a 2 operation I am doing it as a single operation. Why should mine fail. Sorry for bugging you so much.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/6/46ed36b017fe8f4ccf240963ba1581677301255d.png)

Also just curious:  
if (test value = ) {  
test value =   
}  
Should it have been  
if (test value ) {  
test value =   
}  
I just duplicated what you did but just was wondering it was intentional or just a typo. In case the print not only fails but blocks further operation and exits.

---

<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 6, 2025, 4:56am UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/14 "2025-05-06T04:56:15Z")

</div>

> [@anandavardhana57zwwl](#):
>
> if (test value = ) {  
> test value =  
> }  
> Should it have been  
> if (test value ) {  
> test value =  
> }

I’m sorry, I don’t understand what you’re asking. Can you show it in blocks?

When you click Button1, it’s going to save “TopsyTurvy” to the stored variable and then set the label’s text to show that value.

But where is the part where you **get** the value from the stored variable?

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 6, 2025, 5:30am UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/15 "2025-05-06T05:30:18Z")

</div>

![image.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/5784f36975a85340506fd6bcf7fe05bd5527d3e2.png)

This does not work.

---

<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 6, 2025, 2:32pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/16 "2025-05-06T14:32:26Z")

</div>

> [@anandavardhana57zwwl](#):
>
> This does not work.

It seems like you’re not reading what I’m posting. Can you share a link to your project?

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 6, 2025, 3:32pm UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/17 "2025-05-06T15:32:52Z")

</div>

Very sorry for the disconnect

> **[Thunkable](https://x.thunkable.com/copy/9ead8e33538155edeb4d03c4b638025a)**

Please advice thanks

---

<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 7, 2025, 12:36am UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/18 "2025-05-07T00:36:01Z")

</div>

I’m sorry that I can’t help you more. The project you shared has the same blocks as in your screenshot above which means you aren’t getting the value from the stored variable except when clicking the button to also set the value. I’m not sure why you can’t do this the way I showed you in my demo.

Someone else would probably need more information from you. You could start by explaining why you need a stored variable and what the saved value represents, etc.

---

<div class="post-metadata">

### Author: ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)
#### Post date: [May 7, 2025, 5:09am UTC](https://community.thunkable.com/t/stored-variable-unable-to-print-urgent-help/3790271/19 "2025-05-07T05:09:29Z")

</div>

Thanks @tatiang. We will just close this as Thunkable issue.  
The issue is:  
If you are doing a Web Preview on your Laptop and using stored variable the working of your app is flaky. Sometime it works some time it does not. What I have learnt is to test anything on the mobile phone before coming to any conclusion. Sorry for dragging this, this long. Closed thanks again.

best regards  
Ananda
