18 May
2018
18 May
'18
7:26 a.m.
On May 18, 2018, at 7:20 AM, <petr.linke@seznam.cz> <petr.linke@seznam.cz> wrote:
I need do some arithmetic operation in the soh-server, so I tried use the expr module.
example: server soh-server { ... update control { &Tmp-Integer-1 := %{expr: 1 + 2 + 3} }
But from syntax checker I received error message: "Syntax error: Expected comma after '%{expr:': 1 + 2 + 3}"
Is possible use expr in this case?
Yes. The %{...} syntax is for *string* expansions. So you need to do use strings: &Tmp-Integer-1 := "%{expr: 1 + 2 + 3}"