How to move to specific line if a particular situation occurs?

Is UIvisionrpa able to move to a specific command method if a particular situation occurs? For example, when the command of line 9 has an error, it will jump back and execute the line 7 command, but in normal circumstances, it will skip the command of line 7 and don’t execute line 7.

You can use command label and gotolabel to jump in a part of macro code

Here info

But how does it use the gotolabel in the case of error and skip in normal circumstances? I need it to be able to recognize mistakes and act in the wrong circumstances.