Look for a figure, if you find one, click on it. If not, terminate the macro

Hi,

I just started learning. I want to write a macro but I haven’t figured it out.
I would like to explain step by step.
1-Search for the figure A.png on the desktop
2-If you find the A.png figure, click on the A1.png figure
3-Finish the macro if there is no A.png figure.

How should we create it? Can you help me? Thanks in advance.
below is a sample macro.


{
  "Name": "XXXXXXX",
  "CreationDate": "2023-12-22",
  "Commands": [
    {
      "Command": "open",
      "Target": "your_website_url",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "1000",
      "Value": ""
    },
    {
      "Command": "image",
      "Target": "A.png",
      "Value": "found_image"
    },
    {
      "Command": "if_v2",
      "Target": "${found_image}",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "A1.png",
      "Value": ""
    },
    {
      "Command": "else",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Not Found..",
      "Value": "green"
    },
    {
      "Command": "end",
      "Target": "",
      "Value": ""
    }
  ]
}

See If {picture} then {do this}