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.
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.
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.
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.
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