10-18-2023 06:43 AM
Hi,
I am trying to use an AND operator with IF ELSE in the Formula mode in Workato.
Trying to do something like:
IF condition1=TRUE AND Condition2=True
Value
Can someone please assist on this.
Thanks
Solved! Go to Solution.
10-18-2023 09:47 AM
You can use a "ternary operator", which is basically an "if" statement. It has this syntax:
logical_condition ? result_when_true : result_when_false
Example:
1 == 1 ? "true!" : "false!" ## >> "true!"
The AND operator is "&&" and the OR operator is "||"
Example:
1 == 1 && 0 == 1 ? "true!" : "false!" ## >> "false!"
10-18-2023 09:47 AM
You can use a "ternary operator", which is basically an "if" statement. It has this syntax:
logical_condition ? result_when_true : result_when_false
Example:
1 == 1 ? "true!" : "false!" ## >> "true!"
The AND operator is "&&" and the OR operator is "||"
Example:
1 == 1 && 0 == 1 ? "true!" : "false!" ## >> "false!"