Help understanding $rsearch()

F

FeloniousMonk13

Guest
I’m trying to make a tagger script that checks if the artist’s name starts with an article (The, A, or An) and delete the artistsort field if it’s not there. I tried to simplify it as much as possible, and I can’t figure out why this is not working:

$if($rsearch(%artist%,[Tt][Hh][Ee] |[Aa] |[Aa][Nn] ),$delete(artistsort))

According to the docs, $if(x,y,[else]) is supposed to return else if the value in x is empty, so it will not go through with y. $rsearch is supposed to return an empty string if the search comes up empty. The artistsort field is still showing up for artist names that don’t start with an article. What am I doing wrong?

1 post - 1 participant

Read full topic

Continue reading...
 
Top