Many keywords in Robot Framework standard libraries accept arguments that
are handled as Boolean values true or false. If such an argument is given as
a string, it is considered false if it is an empty string or equal to
FALSE, NONE, NO, OFF or 0, case-insensitively. Other
strings are considered true unless the keyword documentation explicitly
states otherwise, and other argument types are tested using the same
rules as in Python.
*** Keywords ***True examplesShould Be Equal ${x} ${y} Custom errorvalues=True# Strings are generally true.Should Be Equal ${x} ${y} Custom errorvalues=yes# Same as the above.Should Be Equal ${x} ${y} Custom errorvalues=${TRUE} # Python `True` is true.Should Be Equal ${x} ${y} Custom errorvalues=${42} # Numbers other than 0 are true.False examplesShould Be Equal ${x} ${y} Custom errorvalues=False# String `false` is false.Should Be Equal ${x} ${y} Custom errorvalues=no# Also string `no` is false.Should Be Equal ${x} ${y} Custom errorvalues=${EMPTY} # Empty string is false.Should Be Equal ${x} ${y} Custom errorvalues=${FALSE} # Python `False` is false.Should Be Equal ${x} ${y} Custom errorvalues=no values# Special false string with this keyword.
Note
Considering OFF and 0 false is new in Robot Framework 3.1.