True type of dynamic action will execute if the employee status is active, and the employee department is equal to 30:
(apex.item('P2_EMP_STATUS').getValue() === 'ACTIVE' && apex.item('P2_DEPT').getValue() === 30)
If this client-side condition does not match then the
False type of dynamic action will execute.
Below is another example to check if the field first name is null or the last name is null:
(apex.item('P2_FIRST_NAME').isEmpty() || apex.item('P2_LAST_NAME').isEmpty())
And the following example having both
(apex.item('P2_EMP_STATUS').getValue() == 'ACTIVE' && apex.item('P2_DEPT').getValue() == 30 || apex.item('P2_EMP_DESIG').getValue() == 'ADMINISTRATOR')