How to accomplish a task with if/else if

How can I accomplish this task using UI Vision RPA, if the action of clicking on “this” is not possible, then if the action of clicking on “click2” is not possible, then clicking on “click3”?

Command": “if”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XClick”,
“Target”: “capture.png”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “elseif”,
“Target”: “capture1.png”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “elseif”,
“Target”: “capture2.png”,
“Value”: “”,
“Description”: “”
},
{

Here example of the command

https://ui.vision/rpa/docs/selenium-ide/if