IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Documentation for 'ifoutput' and 'ifnotoutput'
stevehero
post Jul 1 2017, 02:11
Post #1


Member


Group: Full Members
Posts: 837
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



Whats the correct syntax for the two new web sources framework functions
'ifoutput' and 'ifnotoutput'.

Is there an argument to be used along with them?

My try:
CODE
outputto "ARTIST"
ifoutput "ALBUMARTIST"
say "something smart"


--------------------
Go to the top of the page
 
+Quote Post
Florian
post Jul 1 2017, 06:07
Post #2


Developer


Group: Admin
Posts: 8106
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.85a



Yes. They both take the name of a previously used output as parameter and have to be closed with endif.

QUOTE
IfOutput S Check for content in output buffer named S.
IfNotOutput S Check for absence of content in output buffer named S.

CODE
outputto "coverurl"
ifoutput "TMP_SECONDARY"
    set "coverurl"
    sayoutput "TMP_SECONDARY"
    set "TMP_SECONDARY"
endif

I'll update the documentation accordingly.


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
stevehero
post Jul 1 2017, 11:29
Post #3


Member


Group: Full Members
Posts: 837
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



QUOTE (Florian @ Jul 1 2017, 06:07) *
Yes. They both take the name of a previously used output as parameter and have to be closed with endif.


CODE
outputto "coverurl"
ifoutput "TMP_SECONDARY"
    set "coverurl"
    sayoutput "TMP_SECONDARY"
    set "TMP_SECONDARY"
endif

I'll update the documentation accordingly.

Sweet. Thanks.


--------------------
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: 23rd November 2017 - 08:27