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
andy = 5
, following examplex > 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.
- We have two variables:
-
||
(logical or) - at least one condition must be true for the whole expression to be true, example:- We have two variables:
x = 10
andy = 5
, following examplex > 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.
- We have two variables:
A condition using a checkbox and combobox could look like this:
getValue("GesCheckbox1") == "true" && getValue("GesCombobox1") == "testValue"