How to do something if a image is found and if not do something else?

Hello so im trying to make it lookup a image/button and if it finds it then do a restart or start from the 2 one so it pulls another link out and if its not found then proceed to the next command but so far i cant get the if found then go to 2nd row or to restart it just skips gotolable and proceeds to next commands.

nvm fixed it i guess i needed to make ${found} == 0 <— 1 instead of 0