How to do a command if another command went wrong else dont do?

how to do a command if another command went wrong else dont do

I’m not quite get your question. You mean that you want when a command is wrong, it’s going to stop, or it’s going to do another command? Please be specific and adding some photos might help.

{
“Command”: “store”,
“Target”: “Yes”,
“Value”: “abc”,
“Description”: “”
},
{
“Command”: “if_v2”,
“Target”: “${abc} == “Yes””,
“Value”: “”,
“Description”: “”
},
{
“Command”: “prompt”,
“Target”: “Its YES”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “prompt”,
“Target”: “Its NO”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
}

You can follow this example of If Else


test

if command 1 worked I dont want command 2 to work if command 1 didnt work I want command 2 to work .

just use a simplr if else like the comment above.

{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorignore”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//b[1]”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “if_v2”,
“Target”: “${!STATUSOK} == false”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//a[1]”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
}