# Syntax commands

**URL:** <https://community.mp3tag.de/t/syntax-commands/17999>\
**Category:** Web Sources Discussion\
**Created:** [May 31, 2016, 7:51am UTC](https://community.mp3tag.de/t/syntax-commands/17999 "2016-05-31T07:51:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iMilazzo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/cdc98d/32.png) [@iMilazzo](https://community.mp3tag.de/u/iMilazzo)\
**Post date:** [May 31, 2016, 7:51am UTC](https://community.mp3tag.de/t/syntax-commands/17999/1 "2016-05-31T07:51:45Z")

</div>

Is there a way to test if a tag/content exists before I try to use it?  
I mean, if I try to "findline" a tag that maybe exists maybe not like "Screenwriters" or "Studio" in iTunes website the script abort the process. I don't this behavior.  
I just want the command returns nothing.

Is there a way to implement a "foreach" to loop some tag/content?  
"Do" doesn't work well, I can't Nest this command.

"Aborted: ERROR(L359/do): nesting of do command not allowed"

Thanks  
Ivan

---

<div class="post-metadata">

**Author:** ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)\
**Post date:** [June 26, 2016, 12:12am UTC](https://community.mp3tag.de/t/syntax-commands/17999/2 "2016-06-26T00:12:07Z")

</div>

try findline "foo" 1 1

The first "1" is to find the first instance of foo from whichever line the parser is currently located. The second "1" tells the parser to go to the end of the document if foo is not found. Following that line, if you have more stuff to parse out, use gotoline 1 to tell the parser to the first line of the document and to continue your web source script.
