Hi to All,
i have a simple question that in my case is becoming really fastidious.
So how i can add 2 Number from a JSON?
When i try to add, divide or multiply 2 numbers in an expression like: {{2+2}} there are no problem, but if i try to make the same math calculation with to “node” like this: ![]()
{{($node[“Item Lists”].json[“line_items”][“total”])+($node[“Item Lists”].json[“line_items”][“total_tax”])}}
it do not work
The wrong result is like the first number beside the second number ![]()
Hi @Giorgio
Thats probably because one or both are strings.
try this:
{{(+$node[“Item Lists”].json[“line_items”][“total”])+(+$node[“Item Lists”].json[“line_items”][“total_tax”])}}
Thank you so much, it work! ![]()
But there is a documentation about the use of this kind of operators?
It is basic js ![]()