Boolean operators in assignment rules

This forum was archived to /woltlab and is now in read-only mode.
  • Hi, I'm trying to combine boolean operators in order to get nested expressions (like (host.name == "host1" && host.name == "host2")||host.name == "host3")) but I can't do this, all the operators are transformed in the first one.

    Example: I want (host.name == "host1" && host.name == "host2")||host.name == "host3")


    I set like applyrule.png (see attachment)


    store


    I get like applyrule.png (see attachment): the OR operator becomed AND

    In the preview I get host.name == "host1" && host.name == "host2" && (host.name == "host3")


    Is this a bug or am I doing something wrong?

    Thank you

  • You need to change the upper AND to an OR, and put the 2 host1 & host2 underneath a sub AND. Then have host3 on the upper level next to them, underneath the OR. That's how I would do it from a logical evaluation point.