if statement

  1. M

    if image = true, then do X. Else Y.

    is there a way to set up this function: If image/button found, then X else Y. Thanks in advance. Sorry posted this in the wrong section