If condition skips even when no error is present?

Hi guys. I’ve been building this script that fills a form with someone’s name if the asserted text is present. My problem is that in the first form, the asserted text is wrong, which is good because I want it to ignore the error and move on, and it does, however, when it jumps to ‘end’ and continues with the second form, which contains the correct text, it finds it false, even though the asserted text matches perfectly.

So first text is found false, which it is, and it moves on. The second text is found false, which isn’t, and it moves on.

Here’s my script:

{
  "Name": "Script",
  "CreationDate": "2023-9-12",
  "Commands": [
    {
      "Command": "selectWindow",
      "Target": "TAB=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "refresh",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "2",
      "Value": "!TIMEOUT_WAIT",
      "Description": "decrese the searching time"
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorIgnore",
      "Description": ""
    },
    {
      "Command": "assertText",
      "Target": "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/div/div",
      "Value": "Apply No:",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "30",
      "Value": "!TIMEOUT_WAIT",
      "Description": "change it back to normal"
    },
    {
      "Command": "comment",
      "Target": "do the verify",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "if",
      "Target": "${!statusOK} == true",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "csvRead",
      "Target": "names.csv",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "comment",
      "Target": "✏️1️⃣",
      "Value": "",
      "Description": "Change ID proof if needed"
    },
    {
      "Command": "type",
      "Target": "name=email",
      "Value": "Are",
      "Targets": [
        "name=email",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div/div/input",
        "xpath=//input[@name='email']",
        "xpath=//input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(1) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=new_field_2",
      "Value": "You",
      "Targets": [
        "name=new_field_2",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div[2]/div/input",
        "xpath=//input[@name='new_field_2']",
        "xpath=//div[2]/div/input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(2) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=new_field_3",
      "Value": "The",
      "Targets": [
        "name=new_field_3",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div[3]/div/input",
        "xpath=//input[@name='new_field_3']",
        "xpath=//div[3]/div/input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(3) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=new_field_4",
      "Value": "${!COL1}",
      "Targets": [
        "name=new_field_4",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div[4]/div/input",
        "xpath=//input[@name='new_field_4']",
        "xpath=//div[4]/div/input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(4) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "comment",
      "Target": "Form ends",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return 1000 +  Math.floor(Math.random()*3000);",
      "Value": "waittime",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "${waittime}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "end",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSE",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "refresh",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "2",
      "Value": "!TIMEOUT_WAIT",
      "Description": "decrese the searching time"
    },
    {
      "Command": "comment",
      "Target": "Unique code ⬇️2️⃣",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorIgnore",
      "Description": ""
    },
    {
      "Command": "assertText",
      "Target": "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div/label/div/div/p",
      "Value": "Your Email Address",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "30",
      "Value": "!TIMEOUT_WAIT",
      "Description": "change it back to normal"
    },
    {
      "Command": "comment",
      "Target": "do the verify",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "if",
      "Target": "${!statusOK} == true",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "csvRead",
      "Target": "names.csv",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "comment",
      "Target": "✏️2️⃣",
      "Value": "",
      "Description": "Change ID proof if needed"
    },
    {
      "Command": "type",
      "Target": "name=email",
      "Value": "Are",
      "Targets": [
        "name=email",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div/div/input",
        "xpath=//input[@name='email']",
        "xpath=//input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(1) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=new_field_2",
      "Value": "You",
      "Targets": [
        "name=new_field_2",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div[2]/div/input",
        "xpath=//input[@name='new_field_2']",
        "xpath=//div[2]/div/input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(2) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=new_field_3",
      "Value": "The",
      "Targets": [
        "name=new_field_3",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div[3]/div/input",
        "xpath=//input[@name='new_field_3']",
        "xpath=//div[3]/div/input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(3) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=new_field_4",
      "Value": "${!COL2}",
      "Targets": [
        "name=new_field_4",
        "xpath=/html/body/div/div/div[2]/div/div/div[2]/div/div[4]/form/div[3]/div[4]/div/input",
        "xpath=//input[@name='new_field_4']",
        "xpath=//div[4]/div/input",
        "css=body > div > div > div:nth-child(2) > div > div > div.column.p-4.md:p-8.w-full.lg:w-6/12 > div > div.wrapper.w-full > form > div.form__fields.space-y-4 > div:nth-child(4) > div > input"
      ],
      "Description": ""
    },
    {
      "Command": "comment",
      "Target": "Form ends",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "end",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return 1000 +  Math.floor(Math.random()*3000);",
      "Value": "waittime",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "${waittime}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorIgnore",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=CLOSE",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorIgnore",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "refresh",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorIgnore",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "TAB=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorIgnore",
      "Description": ""
    }
  ]
}

Thanks in advance for any help.