|
|
|
|
#1 |
|
Junior Member
Join Date: Dec 2006
Posts: 34
|
[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 |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Dec 2006
Posts: 34
|
No one know?
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2004
Posts: 33
|
Have you tried:
$IfStrEqual2($fileext(%filename%),ape,'('APE')',$IfStrEqual2($fileext(%filename%),flac,'('FLAC')',$IfStrEqual2($fileext(%filename%),mp3,'('MP3')','('OTHER')'))) |
|
|
|
|
|
#4 |
|
Forum King
|
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. Winamp ATF Reference — My cPro timer widget — My port of AVS Do NOT email me with general tech support questions. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|