Web Sources if findline doesn't find anything

I'm writing a web source script, but in some cases the page I'm searching doesn't contain the data I'm looking for. When this happens the script fails and none of the other pieces of data populate, even though they ARE on the page I'm scraping.

If looked at If, IfNot, IfOutput, IfNotOutput, but they don't seem to fit my use.

Is there a way around this problem?

I've been having the same problem for a couple of weeks but just stumbled across the answer. Add a 3rd parameter to the findline command. eg

findline "certificates=ZZ" 1 fails with an error if certificates=ZZ is not found, but

findline "certificates=ZZ" 1 1 allows the script to continue

hope this helps

Thank you! I will have to try that out.