Old 20th March 2007, 05:14   #1
DeoxySynchro
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
DeoxySynchro is offline   Reply With Quote
Old 20th March 2007, 11:03   #2
DeoxySynchro
Junior Member
 
Join Date: Dec 2006
Posts: 34
No one know?
DeoxySynchro is offline   Reply With Quote
Old 26th March 2007, 21:07   #3
DummyDDD
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')')))
DummyDDD is offline   Reply With Quote
Old 27th March 2007, 10:25   #4
J_Darnley
Forum King
 
J_Darnley's Avatar
 
Join Date: Apr 2004
Location: Belgium, Europe
Posts: 3,625
Send a message via ICQ to J_Darnley
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 ReferenceMy cPro timer widgetMy port of AVS
Do NOT email me with general tech support questions.
J_Darnley is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump