How to loop if web page contains data not found by incrementing csv row line else if web page contains data found correct follow other commands

{
  "Name": "CLT MASTER DATA",
  "CreationDate": "2024-2-6",
  "Commands": [
    {
      "Command": "label",
      "Target": "Start",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://clt.karnataka.gov.in/verify/",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "csvRead",
      "Target": "certificate.csv",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "status = ${!csvReadStatus}, line = ${!csvReadLineNumber}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return Number(${!csvReadLineNumber})+1",
      "Value": "!csvReadLineNumber",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "name=certino",
      "Value": "",
      "Targets": [
        "name=certino",
        "xpath=/html/body/div/div[2]/form/div[2]/div[2]/input",
        "xpath=//input[@name='certino']",
        "xpath=//input",
        "css=body > div > div:nth-child(2) > form > div:nth-child(2) > div:nth-child(2) > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "xpath=/html/body/div/div[2]/form/div[2]/div[2]/input",
      "Value": "${!COL1}",
      "Targets": [
        "name=certino",
        "xpath=/html/body/div/div[2]/form/div[2]/div[2]/input",
        "xpath=//input[@name='certino']",
        "xpath=//input",
        "css=body > div > div:nth-child(2) > form > div:nth-child(2) > div:nth-child(2) > input"
      ],
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "name=kgid",
      "Value": "",
      "Targets": [
        "name=kgid",
        "xpath=/html/body/div/div[2]/form/div[3]/div[2]/input",
        "xpath=//input[@name='kgid']",
        "xpath=//div[3]/div[2]/input",
        "css=body > div > div:nth-child(2) > form > div:nth-child(3) > div:nth-child(2) > input"
      ],
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "name=kgid",
      "Value": "1813085",
      "Targets": [
        "name=kgid",
        "xpath=/html/body/div/div[2]/form/div[3]/div[2]/input",
        "xpath=//input[@name='kgid']",
        "xpath=//div[3]/div[2]/input",
        "css=body > div > div:nth-child(2) > form > div:nth-child(3) > div:nth-child(2) > input"
      ],
      "Description": ""
    },
    {
      "Command": "clickAndWait",
      "Target": "name=submit",
      "Value": "",
      "Targets": [
        "name=submit",
        "xpath=/html/body/div/div[2]/form/div[4]/div[2]/button",
        "xpath=//button[@name='submit']",
        "xpath=//button",
        "css=body > div > div:nth-child(2) > form > div:nth-child(4) > div:nth-child(2) > button"
      ],
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "${!COL1}",
      "Value": "!csvline",
      "Description": ""
    },
    {
      "Command": "storeText",
      "Target": "xpath=/html/body/div/div[2]/div[2]/div/b",
      "Value": "!csvline",
      "Description": ""
    },
    {
      "Command": "storeText",
      "Target": "xpath=/html/body/div/div[2]/div[2]/div/b",
      "Value": "FOUNDTEXT",
      "Description": ""
    },
    {
      "Command": "if",
      "Target": "\"$FOUNDTEXT=Data not found!\"",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "gotoLabel",
      "Target": "Start",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "storeText",
      "Target": "xpath=/html/body/div/div[2]/div[3]/div[2]",
      "Value": "!csvline",
      "Description": ""
    },
    {
      "Command": "storeText",
      "Target": "xpath=/html/body/div/div[2]/div[4]/div[2]",
      "Value": "!csvline",
      "Description": ""
    },
    {
      "Command": "storeText",
      "Target": "xpath=/html/body/div/div[2]/div[5]/div[2]",
      "Value": "!csvline",
      "Description": ""
    },
    {
      "Command": "csvSave",
      "Target": "data.csv",
      "Value": "data",
      "Description": ""
    },
    {
      "Command": "end",
      "Target": "",
      "Value": "",
      "Description": ""
    }
  ]
}

If no data is found, the storeText commands returns #LNF instead of text. As an example, see this web extraction macro.