![]() |
[Toaster] Advanced Title Formating Question
Let's say I want to display the following syntax:
Condition A: if the file extension is APE, then it will display as (APE) AND Condition B: if the file extension is FLAC, then it will display as FLAC AND Condition C: if the file extension is MP3, then it will display as MP3 AND Condition D: if the file extension is none of above, it will display as OTHER So far I only know how to deal with the following syntax, which will only check 2 condition: $IfStrEqual2($fileext(%filename%),ape,'('APE')','('MP3')') * Any help will be appreciated |
No one know?
|
Have you tried:
$IfStrEqual2($fileext(%filename%),ape,'('APE')',$IfStrEqual2($fileext(%filename%),flac,'('FLAC')',$IfStrEqual2($fileext(%filename%),mp3,'('MP3')','('OTHER')'))) |
You could just use:
$fileext(%filename%) or $upper($fileext(%filename%)) which will return the extension in upper case. $decode($fileext(%filename%),mp3,MP3,flac,FLAC,ape,APE,Other) Note: Requires the else case. Winamp ATF reference. |
| All times are GMT. The time now is 22:17. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.