Nested if statement in expression language


I have an expression binding and i want to return 1 if the conditions of 2 tags is how i want it. unfortunately im getting a syntax error. can someone help?

Make two custom properties that use indirect tag bindings to bring in the two tags you care about (avoiding the use of the tag() expression function, which can lead to scalability/performance problems over time).

Then your expression binding is just:
{myCustomProperty1} = "AUTOMATIC" && {myCustomProperty2} = "ACTIVE"
Or use || for a logical OR. You don't need the if function to return a true/false value; the boolean operator will automatically return a true/false.

1 Like