[error] Unclosed ‘if’

Why is macro giving error = [error]
Unclosed ‘if_v2’ (at command #10)

{
“Name”: “test2”,
“CreationDate”: “2019-11-15”,
“Commands”: [
{
“Command”: “click”,
“Target”: “xpath=//[@id=“div_field_ep_”]/div/button",
“Value”: “”
},
{
“Command”: “type”,
“Target”: "xpath=//
[@id=“div_field_ep_”]/div/ul/li[2]/a/label/input”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“div_field_”]/div/button",
“Value”: “”
},
{
“Command”: “verifyElementNotPresent”,
“Target”: "xpath=//
[@id=\“div_field_\”]/div/ul/li[42]/a/label”,
“Value”: “”
},
{
“Command”: “if_v2”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=//[@id=“div_field_”]/div/ul/li[42]/a/label/input",
“Value”: “106”
},
{
“Command”: “click”,
“Target”: "xpath=//
[@id=“div_field_”]/div/ul/li[42]/a/label”,
“Value”: “”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “verifyElementNotPresent”,
“Target”: “xpath=//[@id=\“div_field_”,
“Value”: “”
},
{
“Command”: “if_v2”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: "xpath=//
[@id=“div_field_”]/div/ul/li[113]/a/label/input”,
“Value”: “107”
},
{
“Command”: “click”,
“Target”: “xpath=//*[@id=“div_field_”]/div/ul/li[113]/a/label”,
“Value”: “”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “selectWindow”,
“Target”: “tab=1”,
“Value”: “”
}
]
}

You forgot your end

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

use ‘end’ command for close if

Hello, Help…

I have this error too but I’m sure I have closed with end command…
I have verified the code with jsonformatter, the code is ok…
I have a lot of if in my code, maybe uivision is lost ? :joy:

creation_verif_if.json (46.3 KB)

Too long this code, need more and more time to study all command

Use !times command to reduce line of code