ImageSearchrecently, which got me confused: functions now return something, and this particular one returns
0on not found and
1on match, which is opposite to
ErrorLevelvalues. However, error is still shown only in
Question is: do we still need
ErrorLevelin such places, if at all? I like how the function returns true/false, allowing to put it in
ifor other place. Perhaps errors could throw exception instead? If anything, users could probably use
try/catchto prevent exception from stopping code flow if needed. This would surely save me time where I put file path first, then options, which is seemingly not allowed.