CODE
$if($meta(album artist),
$puts(title,$get(title) '('%artist%')')
)
Untested - it may be that you need to use $meta_test(album artist) instead. In the past, such checks were much easier, because %album artist% would only return a value if the metadata field actually exists. Since the %percent fieldmappings% do now follow more complex remapping-rules, such checks are a now a bit less intuitive (though, the gain is that alot of simple formatting is now easier.... so, through field remappings, simple stuff became even more simple, but complex stuff became a bit more complex).
- Lyx
P.S.:
Wait a minute..... i suppose i get what you are trying to achieve..... you are doing a "singlemode playlist with album artist support". In that case, avoiding field remappings is exactly the wrong thing to do, because the remappings were created to make exactly this easy to do...... test the following code to see what i mean:
CODE
[%album artist% - %album% - %tracknumber% - ]%title%[ '('%track artist%')']
So, what you want to add to the title most probably is NOT %artist% but instead %track artist% (check the reference docs to see what it does)