Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Simple-ish string question (Read 2562 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Simple-ish string question

Hey guys,

At the moment i have this: $if([%ALBUM ARTIST%],%album%,%artist%)

It checks to see if "ALBUM ARTIST" exists, if it does it returns %album%, if not it returns %artist%

I want to change it so that it checks if "ALBUM ARTISTS" is longer than 0 characters, if it does it returns %album%, if not it returns %artist%.

Im having a bit of trouble figuring out how to do that, could you please give me a pointer or two?

Thankyou,
Rob.

Simple-ish string question

Reply #1
This string will serve you better:

$if($meta(album artist),%album%,%artist%)

Simple-ish string question

Reply #2
This string will serve you better:

$if($meta(album artist),%album%,%artist%)

Huzzah, that worked beautifully. Thankyou for that!

Rob.

This be the one i am using atm: $if($meta(album artist),%album%,%artist%)|%album%

 

Simple-ish string question

Reply #3
This might serve you even better  :

$if($meta(album artist),%album%,%artist%|%album)|

This will avoid situations like:

OST- I am sam\OST- I am sam\