Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp Discussion (http://forums.winamp.com/forumdisplay.php?f=8)
-   -   [Toaster] Advanced Title Formating Question (http://forums.winamp.com/showthread.php?t=268090)

DeoxySynchro 20th March 2007 05:14

[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 20th March 2007 11:03

No one know?

DummyDDD 26th March 2007 21:07

Have you tried:
$IfStrEqual2($fileext(%filename%),ape,'('APE')',$IfStrEqual2($fileext(%filename%),flac,'('FLAC')',$IfStrEqual2($fileext(%filename%),mp3,'('MP3')','('OTHER')')))

J_Darnley 27th March 2007 10:25

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.