How to create complex visibility conditions

I want to create a visibility condition that checks several components.
E.G. whether the checkbox is checked and whether the combobox has the selected value

Conditions of requirement, visibility, activity, etc. in Eximee Console are written in javascript.

To combine two conditions we can use the logical operators:

  • && (logical and) - all conditions combined with and must be true for the whole expression to be true, example:

    • We have two variables: x = 10 and y = 5, following example x > 5 && y < 10 is true because both conditions are true.
    • For the above variables following example x == 12 && y < 10 is false because the first expression is false.
  • || (logical or) - at least one condition must be true for the whole expression to be true, example:

    • We have two variables: x = 10 and y = 5, following example x > 5 && y > 10 is true because first conditions is true.
    • For the above variables following example x == 12 && y == 6 is false because both conditions are false.

A condition using a checkbox and combobox could look like this:

getValue("GesCheckbox1") == "true" && getValue("GesCombobox1") == "testValue"