Switch doesn’t open

So I create a very simple APP which Plays a Music when switch is ON and user can set volume I use TinyDB to store slider & Switch value. But the problem I am facing is I am unable to Open switch when i use tinyDB like I pressed it several time it’s always remain closed.
However Slider is working fine
Here are My blocks Kindly tell me the Mistake.
I am new here and trying to learn.

In the screen initialize if no value found in tinydb don’t add false block , instead try with empty text box.

Tried But this Time it Doesn’t Save the Value of Switch like when I restart App Switch Is Closed no matter if i Put it ON or OFF before Closing App

You probably want this:

otherwise, explain what the purpose of this is:

I used It Because i want Switch to Change colour when its Turn On or OFF
Like this


Tried still the same Issue
Value of switch does not save
Whenever I reopen app the switch is closed

Now it’s Stuck on ON​:frowning:
Don’t know What’s wrong with it

Post the aia or a test aia.

Here it is
Daroodpak.aia.zip (1.1 MB)

Daroodpak2.aia (1.1 MB)

As I already said:

1 Like

Daroodpak3.aia (1.1 MB)

1 Like

Why not???

1 Like

This block should / must return true / false (and of course not an empty string):

2 Likes

Corrected … thank you …:+1: