Script change with conditions

Tags: #<Tag:0x00007f327b991420>

@tom_l
My frirend. Your help was appreciated. The whole think was based on your idea.

Anyway.
I did more testing than just trying to see if there are errors and I can see that the sonos.restore is executed anyway even if the media is idle.

Can someone help me to pin point what is going on?

It seems that the conditions do not work and steps 1 and 4 are executed no matter what.
I cannot see the input_boolean to change value