How to change variable value with Javascript?

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Благодарностей
21
Баллы
18
Hello,

I was expecting to be able to change a variable value in a js block with:

{-Variable.reached-} = "no";

But it is not happening, any idea why please? Do I have to use C SHARP instead?

Thank you.
 

ibred

Client
Регистрация
04.04.2015
Сообщения
3 835
Благодарностей
3 552
Баллы
113
You cannot set the value of a variable through javascript.
If you need to do this through code, use C #:
Код:
project.Variables["reached"].Value = "no";
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
There is also special action block to set value to variable
Assign value to variable.png
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Благодарностей
21
Баллы
18
Thanks to both!!! Yes you are right I forget about this... I do not use Zenno daily and keep forgetting some of the options...thanks again
 

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