I’d like to add one thing to Doug’s response: I don’t think there’s any need for the “if imageFound()” part of your code. You can just have the “wait until…” line by itself – if the image isn’t found, the “wait until…” will immediately succeed (by not finding the image) in the same amount of time that the “if imagefound()” line will take to fail if the image isn’t there. So your code will look like this:
Wait Until not imageFound("image")
repeat while imageFound("image")
wait 0.5 second -- take a short break before checking again
This will log that the image either was or wasn’t found initially, and then make sure that logging is off for the duration of the loop.
What you may be trying to accomplish is to first allow some time for the popup to appear before waiting for it to go away, in which case your original code may work because the conditional statement introduces a slight delay while Eggplant looks for the image.