# Variables not working- Project

**URL:** <https://community.thunkable.com/t/variables-not-working-project/3740987>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, help\
**Created:** [April 14, 2025, 2:02pm UTC](https://community.thunkable.com/t/variables-not-working-project/3740987 "2025-04-14T14:02:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.fat4z3b](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@e.fat4z3b](https://community.thunkable.com/u/e.fat4z3b)\
**Post date:** [April 14, 2025, 2:02pm UTC](https://community.thunkable.com/t/variables-not-working-project/3740987/1 "2025-04-14T14:02:10Z")

</div>

Hi,

I am creating a project for my students, where when they select a mood from screen 1 and then press submit, on screen 2 it will display a motivational message. However when I do this, it does not display a message.

 ![SCreen2 code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/0/405ed1de403ab34aef11338e41ef8116c68a1418.png)  
 ![screen1 code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a63d108edb6f07536ddecb235cd4ef3d86e9d4a.png)  
 ![screens](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/f/3f6bd60eb238d9cca66d5bffb27f4ca418d1e902.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:** [April 14, 2025, 6:14pm UTC](https://community.thunkable.com/t/variables-not-working-project/3740987/2 "2025-04-14T18:14:16Z")

</div>

On screen 2, you are not using the correct variable name. You initialized Mood as a variable but then used other names for variables. You need to fix that (see below) and also use an equals (=) block from the Logic drawer to compare a variable value to a text string.

To avoid this problem, I recommend not using the `set app variable " "` block and instead using the `set app variable Mood` and `app variable Mood` blocks at the top of the Variables drawer.

---

<div class="post-metadata">

**Author:** ![e.fat4z3b](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@e.fat4z3b](https://community.thunkable.com/u/e.fat4z3b)\
**Post date:** [April 15, 2025, 5:31am UTC](https://community.thunkable.com/t/variables-not-working-project/3740987/3 "2025-04-15T05:31:49Z")

</div>

Like this? I tried it and it worked.

 ![screen2 code new](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/9/89da02fd05b769a2c035798635e32346d9511505.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:** [April 15, 2025, 2:03pm UTC](https://community.thunkable.com/t/variables-not-working-project/3740987/4 "2025-04-15T14:03:25Z")

</div>

Yes! Note that the first set of blocks (set app variable Mood to app variable Mood) doesn’t do anything. It’s equivalent to writing Let x = x in math.

---

<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:** [April 15, 2025, 11:20pm UTC](https://community.thunkable.com/t/variables-not-working-project/3740987/5 "2025-04-15T23:20:28Z")

</div>

Hi @e.fat4z3b  
Be sure to use the same variable type (Statically Named or Dynamically Named) on all of your screens.

You can find more information about variables in our docs: [https://docs.thunkable.com/blocks/blocks/variables-overview](https://docs.thunkable.com/blocks/blocks/variables-overview)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 14, 2025, 11:20pm UTC](https://community.thunkable.com/t/variables-not-working-project/3740987/6 "2025-07-14T23:20:40Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
