If-v2 and waitForElementPresent

Hi all, new to this but learning a lot, I am trying to work out how after below " waitForElementPresent". to use if - v2 and have if no Element Presents it loops back to start and keep doing this till ElementPresent then in finish macro. any help would be gratefully appreciated Kind Regards Liam a new-be. {
“Command”: “waitForElementPresent”,
“Target”: “https://dev.ilien.io/gold-price/”,
“Value”: “”,
“Description”: “”
},

here is my code but it still runs when element is not present, I need it to. loop from step 1 to step 3 and only if element appears does it do steps 4 and 5. Any Ideas all ? Kind regards Liam
{
“Name”: “Test 2”,
“CreationDate”: “2022-4-6”,
“Commands”: [
{
“Command”: “open”,
“Target”: “IN RANGE – rabbittapi”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “10000”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “waitForElementPresent”,
“Target”: “id=message”,
“Value”: “”,
“Targets”: [
“id=message”,
“xpath=//[@id=“message”]",
“xpath=//div[@id=‘message’]”,
“xpath=//article/div/div/div”,
“css=#message”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=gold”,
“Value”: “”,
“Targets”: [
“id=gold”,
"xpath=//
[@id=“gold”]”,
“xpath=//input[@id=‘gold’]”,
“xpath=//tr[2]/td[2]/input”,
“css=#gold”
],
“Description”: “”
},
{
“Command”: “storeText”,
“Target”: “id=message”,
“Value”: “result”,
“Description”: “”
}
]
}