exit Testcase on IF condition in robotframework code example
Example: robot framework set variable if else
${var} = Set Variable If
... "${var}"=="None" value
... "${var}"=="True" value
... "${var}"=="False" value
... Final else!