How can I check 2 conditions in the Expersson node? && or AND do not work.
if(($[“Höhe”]$[“Breite”]$[“Länge”]) < 800600322) && ($[“Nettogewicht”]*4<40) ,“OK”,“rest”)
Hi @MCBirne ,
“and”, “or”, and “not” should work.
As I see it, this is only documented in the node description. The auto-completion does not suggest those.
Operators: The expression language supports basic operators, namely arithmetic ( + , - , * , / float division, // integer division, ** exponentiation, % modulo), comparison ( < , <= , > , >= , = , != ), logical ( and , or , not ), string concatenation ( + ) and a special ‘missing coalescing’ operator ?? which sets a default value if the left operand is missing.
Hope this helps,
nan
3 Likes
If I use “and” instead of “AND”, it works. Thanks!
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.