Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Setexpression() arguments

Josh Jan 15, 2019 11:05PM CET

Does the expression name accept an index as an argument?

For example if a switches object has 3 switches, can I pass ‘x[1]’ to set the expression on only the second switch?

setexpression(Switch,’x[1]’,1);


The parser doesn’t show an error, but I can only get it to work if I pass x without the index, which changes all of the switches.

Thanks!

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
support@liine.net
http://assets1.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete