I want to construct Run Keyword if in such a way so that it can handle multiple negative conditions
I took help in constructing Run Keyword if for multiple conditions in the following way:
Run keyword if ${Param1} in ['${value1}', '${value2}] Log to Console Some Message
Help taken from: How to write multiple conditions of if-statement in Robot Framework
Now I want to construct the same function so that the keyword runs if few conditions are not met.
The obvious code can be as follows: Run keyword if ${Param1}!=${value1} and ${Param1}!=${value2} Log to Console Some Message
The code that I am expecting:
Run keyword if ${Param1} !in ['${value1}', '${value2}] Log to Console Some Message
What is the correct syntax for !in
?