Post Reply 
Fallback procedure when displayFormat results in an empty string
09-09-2013, 21:18
Post: #10
RE: Fallback procedure when displayFormat results in an empty string
(09-09-2013 21:04)simoncn Wrote:  I'm thinking of making a small enhancement to format strings that would help with this. The or sign '|' could be used as a binary operator that selects the second operand if and only if the first operand is absent. For example,

Artist.displayValue={$displayartist|$artist}

would use the DisplayArtist value(s) if there are any, and would use the Artist value(s) otherwise.

This sounds great and it would be a proper solution to this specific problem. I think that there might be also other use cases for the '|' operator.
I've just another related question concerning the tag names. Are they case insensitive referring to the specifications and how is this handled in MinimServer? I see them sometimes spelled e.g. 'displayartist', 'DisplayArtist' or 'DISPLAYARTIST'. Will MinimServer treat all this strings equally? Thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Fallback procedure when displayFormat results in an empty string - winxi - 09-09-2013 21:18

Forum Jump:


User(s) browsing this thread: 1 Guest(s)