I'm adding some code to Track Info Mod to indicate the presence of embedded lyrics or TXT or LRC files. So far I have:
$if($or(%lyric%,%lyrics%), Embedded,)
$if($cwb_fileexists($replace(%_path%,%_filename_ext%,)%album artist% - %title%.txt), TXT,)
$if($cwb_fileexists($replace(%_path%,%_filename_ext%,)%album artist% - %title%.lrc), LRC,)
$rgb(255,0,0) NONE$char(10)
This code works fine but what I'd like to display is basicaly
Lyrics: (Embedded) (TXT) (LRC) NONE
where none is displayed when the first 3 fail. Seemingly $if3 is the way to go but when I use the above code it results in false. Here's what I have.
$if3($if($or(%lyric%,%lyrics%), Embedded),$if($cwb_fileexists($replace(%_path%,%_filename_ext%,)%album artist% - %title%.txt), TXT),$if($cwb_fileexists($replace(%_path%,%_filename_ext%,)%album artist% - %title%.lrc), LRC),$rgb(255,0,0) NONE)
Any ideas? Thanks.
How about...
$if($or(%lyric%,%lyrics%), Embedded,$if($cwb_fileexists($replace(%_path%,%_filename_ext%,)%album artist% - %title%.txt), TXT,$if($cwb_fileexists($replace(%_path%,%_filename_ext%,)%album artist% - %title%.lrc), LRC,$rgb(255,0,0) NONE$char(10))))
Now, I have by all means never touched a single line of tagz code, but as far as I understand, this setup will evaluate the next IF clause until a positive is found, or the last ELSE is issued (the NONE thingy)