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 ( == "host1" && == "host2")|| == "host3")) but I can't do this, all the operators are transformed in the first one.

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

    I set like applyrule.png (see attachment)


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

    In the preview I get == "host1" && == "host2" && ( == "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.