6
votes

Hi I want to run a keyword if some boolean is false, I am doing this to run a keyword if Bool is true but how can i run the keyword if Bool is false

Run Keyword If    ${Bool}
2

2 Answers

18
votes

Use Unless.

Run Keyword Unless   ${Bool}
5
votes

Alternative - negate the bool value:

Run Keyword If    not ${Bool}