How do I create if and else in a macro

hello guys from the forum I’m having trouble using if and else I need my macro to consult a phone number on a website, when the number doesn’t exist it opens a window giving the information, I need that when that happens it press “ok” and go to the next…if you can help me I will be very grateful.

UI Vision has the “if… else” command. For a more detailed help, a link or screenshot of the website will be helpful.