IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Scripting not working with %_max_counter%?, $ifgreater does not seem to work...
supertagger
post Oct 1 2007, 00:16
Post #1


Member


Group: Full Members
Posts: 14
Joined: 19-September 07
Member No.: 5637
Mp3tag Version: 2.38a



Hi,

I am trying to make my script say "1 Album" if there is just one album in a particular loop, and "5 Albums" (PLURAL) if there are more than one.

I thought this should work using this line:

$ifgreater(%_max_counter%,1,Albums,Album)

Unfortunately, it does not work - is there any other way? I am trying to export to text.

Thanks.
Go to the top of the page
 
+Quote Post
milka
post Oct 1 2007, 12:26
Post #2


Croatian translator


Group: Translators
Posts: 315
Joined: 7-February 05
From: Croatia, Zagreb
Member No.: 1533
Mp3tag Version: 2.41



It shoud work, maybe you didn't put %_max_counter% out of the loop.

ex:

CODE
$loop(%album%)
$loopend()
$ifgreater(%_max_counter%,1,Albums,Album)



%_max_counter% - Maximum value of counter of the last closed loop.

~ milka

This post has been edited by milka: Oct 1 2007, 12:28


--------------------
Go to the top of the page
 
+Quote Post
supertagger
post Oct 3 2007, 12:31
Post #3


Member


Group: Full Members
Posts: 14
Joined: 19-September 07
Member No.: 5637
Mp3tag Version: 2.38a



Yeah! That WAS it! Thank you so much Milka, now it works.

st smile.gif

QUOTE (milka @ Oct 1 2007, 12:26) *
It shoud work, maybe you didn't put %_max_counter% out of the loop.

ex:

CODE
$loop(%album%)
$loopend()
$ifgreater(%_max_counter%,1,Albums,Album)

%_max_counter% - Maximum value of counter of the last closed loop.

~ milka
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 May 2013 - 16:16