# Web Sources if findline doesn't find anything

**URL:** <https://community.mp3tag.de/t/web-sources-if-findline-doesnt-find-anything/19506>\
**Category:** Web Sources Discussion\
**Created:** [November 3, 2017, 6:04pm UTC](https://community.mp3tag.de/t/web-sources-if-findline-doesnt-find-anything/19506 "2017-11-03T18:04:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pints1ze](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@pints1ze](https://community.mp3tag.de/u/pints1ze)\
**Post date:** [November 3, 2017, 6:04pm UTC](https://community.mp3tag.de/t/web-sources-if-findline-doesnt-find-anything/19506/1 "2017-11-03T18:04:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Fatduckz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/ba8739/32.png) [@Fatduckz](https://community.mp3tag.de/u/Fatduckz)\
**Post date:** [January 11, 2018, 12:15am UTC](https://community.mp3tag.de/t/web-sources-if-findline-doesnt-find-anything/19506/2 "2018-01-11T00:15:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pints1ze](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@pints1ze](https://community.mp3tag.de/u/pints1ze)\
**Post date:** [January 12, 2018, 12:21am UTC](https://community.mp3tag.de/t/web-sources-if-findline-doesnt-find-anything/19506/3 "2018-01-12T00:21:53Z")

</div>

> [@Fatduckz](#):
>
> 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.
