IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Syntax commands, How to...
iMilazzo
post May 31 2016, 10:51
Post #1


Member


Group: Members
Posts: 2
Joined: 7-May 16
Member No.: 22092
Mp3tag Version: 2.77



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
Go to the top of the page
 
+Quote Post
ms6676749
post Jun 26 2016, 03:12
Post #2


Member


Group: Full Members
Posts: 52
Joined: 17-March 16
Member No.: 21892
Mp3tag Version: 2.75



QUOTE (iMilazzo @ May 31 2016, 11:51) *
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

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.

This post has been edited by ms6676749: Jun 26 2016, 03:13
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th November 2017 - 09:28