![]() ![]() |
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. |
|
|
|
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 -------------------- |
|
|
|
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 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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 16:16 |