2
« on: July 19, 2013, 10:07:09 AM »
Clearly, the goal of the MusicBee scripting language is to be less messy than that of competing players. To that end, I'd like to suggest inline "and", "or", and "not" operators.
For example:
$If(<Bitrate> != "320k" && <Bitrate> != "256k" || $Right(<Encoding Quality>,1) > 2,Low Quality,High Quality)
vs.
$If(<Bitrate> = "320k",High Quality,$If(<Bitrate> = "256k",High Quality,$If($Right(<Encoding Quality>,1) > 2,Low Quality,High Quality)))
As in most languages, "and" would take precedence, thereby negating the need for additional parentheses.
Though I'm sure this has been raised a million times, I'd also like to note that MusicBee simply doesn't contain enough functions. There are a number of kludgy workarounds that can be used to fill in some of the gaps, but at minimum, I'd like to see the following irreplicable functions added: $len, $lower, $upper, $substr, $stricmp, $strchr, and $strrchr.
One last thing: I don't expect this one to happen, but if I were in charge, I'd replace $IsNull with [] (or something like $NotNull). How many times do you want to display something if the value *is* null? It's just one extra comma, I know, but all the same, it's a baffling design decision.