logical if does not work with variable default value

yann06

Новичок
Регистрация
16.12.2015
Сообщения
12
Благодарностей
2
Баллы
3
Hi,

I noticed that the logical if does not work with a variable that does not have a value but has a default value.
That forces me to set all my variables at the beginning of the script even though they all have a default value...

Not sure if this is a bug or a choice of design.

Thanks
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 184
Баллы
113
Default value will be set as value in project restart and all will be fine. Otherwise please post project where it is not working for you.

Thanks
 

yann06

Новичок
Регистрация
16.12.2015
Сообщения
12
Благодарностей
2
Баллы
3
I see what happened. I am working on a big project and I was debugging a section so I did not restart the whole project and the variable did not get instantiated.
Thanks for your help
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 184
Баллы
113
I see what happened. I am working on a big project and I was debugging a section so I did not restart the whole project and the variable did not get instantiated.
Thanks for your help
Then just when you add default value, just copy same in value and you will be fine to test. :-)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)