In the Robot framework, there are builtin keywords that handle the execution when the failure occurs.
Below are the keywords available to use when the failure occurs,
The complete documentation is available in Robot framework forum - http://robotframework.org/robotframework/2.6.1/libraries/BuiltIn.html#Run%20Keyword%20And%20Continue%20On%20Failure
Conditional Statement :
The conditional statement If ... else can be used in Robot framework with Run Keyword If
Example: