CODE
$if(
$if2($not(%tracknumber%),%compilation%),
'◊ '$if2(%artist%,%title%)
[' ● '%album%]
[' ● '%date%]
[' ● '$lower(%codec%)]
$repeat($char(9),$get(column_3)),
$if(
))
I want to be able to skip the
CODE
$if2($not(%tracknumber%),%compilation%),
check so to go directly to CODE
'◊ '$if2(%artist%,%title%)
[' ● '%album%]
[' ● '%date%]
[' ● '$lower(%codec%)]
$repeat($char(9),$get(column_3)),
and to do this without corrupting the function of the main if statement.
The purpose is to be able to use something like this
CODE
$puts(Playlist_Mode,1)
$if($strcmp($get(Playlist_Mode),1), )
$if($strcmp($get(Playlist_Mode),1), )
to be able to switch between album and artist(Allways on VariousArtistMode) mode.
here is the full code code if it helps.
CODE
//Written by, Wurlitzer,
//Modified by Zoofield.
////////// COLUMNS /////////////////////////////////////////////
$puts(column_1,70)
$puts(column_2,100)
$puts(column_3,100)
////////// PL NUMBER ///////////////////////////////////////////
$num(%_playlist_number%,$len(%_playlist_total%))' '
////////// LEFT COLUMN /////////////////////////////////////////
$if(
$if2($not(%tracknumber%),%compilation%),
////////// EXECUTES VARIOUS ARTISTS MODE ///////////////////////
////////// REQUIRES COMPILATION TAG or MISSING TRACK TAG///////
'◊ '$if2(%artist%,%title%)
[' ● '%album%]
[' ● '%date%]
[' ● '$lower(%codec%)]
$repeat($char(9),$get(column_3)),
////////// EXECUTES SINGLE ARTIST MODE /////////////////////////
$if(
%artist%,
$if($strcmp($num(%tracknumber%,1),1),
'● '$upper(%artist%)
' '$repeat('- ',100))
////////// ALBUM ///////////////////////////////////////////////
$if($strcmp($num(%tracknumber%,1),2),
'● '%album%,)
////////// DATE, GENRE /////////////////////////////////////////
$if($strcmp($num(%tracknumber%,1),3),
'● '%date% [%genre%][' | '%style%][' | '%type%],)
////////// CODEC ///////////////////////////////////////////////
$if($strcmp($num(%tracknumber%,1),4),
'● '
$info(codec) [%__extrainfo%])
$repeat($char(9),$get(column_1))
,))
////////// RIGHT COLUMN ////////////////////////////////////////
////////// TRACK NUMBERS ///////////////////////////////////////
| $num(%tracknumber%,2)' '
////////// TITLES ///////////////////////////////////////////////
$if(
$if($not(%compilation%),%album%),
[%title%]
$if($strcmp($num(%tracknumber%,1),1), $repeat('- ',100),),
$if2(%title%,%_filename%))
$repeat($char(9),$get(column_2))
////////// TIME ////////////////////////////////////////////////
$if(%_isplaying%,'|> ')
| [$pad_right(%_length%,5,0) ]
////////// BITRATES ////////////////////////////////////////////
'● '
[$pad_right(%__bitrate%,4,0)]
//Modified by Zoofield.
////////// COLUMNS /////////////////////////////////////////////
$puts(column_1,70)
$puts(column_2,100)
$puts(column_3,100)
////////// PL NUMBER ///////////////////////////////////////////
$num(%_playlist_number%,$len(%_playlist_total%))' '
////////// LEFT COLUMN /////////////////////////////////////////
$if(
$if2($not(%tracknumber%),%compilation%),
////////// EXECUTES VARIOUS ARTISTS MODE ///////////////////////
////////// REQUIRES COMPILATION TAG or MISSING TRACK TAG///////
'◊ '$if2(%artist%,%title%)
[' ● '%album%]
[' ● '%date%]
[' ● '$lower(%codec%)]
$repeat($char(9),$get(column_3)),
////////// EXECUTES SINGLE ARTIST MODE /////////////////////////
$if(
%artist%,
$if($strcmp($num(%tracknumber%,1),1),
'● '$upper(%artist%)
' '$repeat('- ',100))
////////// ALBUM ///////////////////////////////////////////////
$if($strcmp($num(%tracknumber%,1),2),
'● '%album%,)
////////// DATE, GENRE /////////////////////////////////////////
$if($strcmp($num(%tracknumber%,1),3),
'● '%date% [%genre%][' | '%style%][' | '%type%],)
////////// CODEC ///////////////////////////////////////////////
$if($strcmp($num(%tracknumber%,1),4),
'● '
$info(codec) [%__extrainfo%])
$repeat($char(9),$get(column_1))
,))
////////// RIGHT COLUMN ////////////////////////////////////////
////////// TRACK NUMBERS ///////////////////////////////////////
| $num(%tracknumber%,2)' '
////////// TITLES ///////////////////////////////////////////////
$if(
$if($not(%compilation%),%album%),
[%title%]
$if($strcmp($num(%tracknumber%,1),1), $repeat('- ',100),),
$if2(%title%,%_filename%))
$repeat($char(9),$get(column_2))
////////// TIME ////////////////////////////////////////////////
$if(%_isplaying%,'|> ')
| [$pad_right(%_length%,5,0) ]
////////// BITRATES ////////////////////////////////////////////
'● '
[$pad_right(%__bitrate%,4,0)]
Thanks in advance.