Thank you very much for yout feedback and your support. As you told I was not aware that condition in scripts work differently.
I will try to reach the same gol using automation maybe (because I’m not a programmer so I don’t have skills to write a python script.