If function issue

hello

i would to use if function if in ui vision
if picture found click on it
if not found continue the code normally
i tried many things with no luck so please need your support

This should help:

This article have lots of info thanks for sharing this.