Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Syntax - help needed (Read 361 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Syntax - help needed

I would like the Artist to be displayed but only when
- The files are in lossless format
- In the case of multi-disc (%TOTALDISCS%) albums, the total number of albums is greater than 1

I tried to do something like this but without success

Code: [Select]
$if($and($if(%discnumber%,$ifgreater(%totaldiscs%,1,),$if($strcmp(%__encoding%,lossless)),%artist%)

I know there is a problem with using the $ifgreater parameter  but I don't know how to solve it  :'(

Re: Syntax - help needed

Reply #1
I would like the Artist to be displayed but only when
- The files are in lossless format
- In the case of multi-disc (%TOTALDISCS%) albums, the total number of albums is greater than 1

I tried to do something like this but without success

Code: [Select]
$if($and($if(%discnumber%,$ifgreater(%totaldiscs%,1,),$if($strcmp(%__encoding%,lossless)),%artist%)

I know there is a problem with using the $ifgreater parameter  but I don't know how to solve it  :'(

$ifgreater(%discnumber%,1,$if($stricmp(%__encoding%,lossless),%artist%),)

Re: Syntax - help needed

Reply #2
@Defender Thank you very much, this is what I needed  :)