View Issue Details

IDProjectCategoryView StatusLast Update
0015355MMW 5Tagging / organizing (properties / auto-tools)public2021-05-25 12:53
Reporterpeke Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Target Version5.0.1 
Summary0015355: Mask: Some $if Masks fail for characters comparison
Description Some $if Masks fail for characters comparison eg. $if(<ARTIST:1>=A..Z,<ARTIST:1>,#) always fail.

Expected it to work exactly as $if(<ARTIST:1>=1..10,0-9,<ARTIST:1>) for numbers.

More Complex example:
"$if($Left($Upper($RemovePrefix(<Album Artist>)),1)=1..10,0-9 #,$if($Left($Upper($RemovePrefix(<Album Artist>)),1)=A..Z,$Left($Upper($RemovePrefix(<Album Artist>)),1),$Left($Upper($RemovePrefix(<Album Artist>)),1),0-9 #))\$MovePrefix(<Album Artist>)\<Date> - <Album>\<Track#:3>"
Additional Informationhttps://www.mediamonkey.com/forum/viewtopic.php?f=1&t=93684
TagsNo tags attached.
Attached Files
bug15355-2.jpg (181,558 bytes)   
bug15355-2.jpg (181,558 bytes)   
Fixed in build

Activities

jiri

2019-01-30 14:22

administrator   ~0052346

I don't think we have ever supported range (..) operator, did we? I suppose that this must be handled by nested ifs.

peke

2019-01-30 18:04

developer   ~0052350

Look that you are right althrum this one works it is too nested like you pointed:
Mask like "c:\$if($Left($Upper($RemovePrefix(<Artist>)),1)=1..10,0-9 #,$if($Left($Upper($RemovePrefix(<Artist>)),1)=A,$Left($Upper($RemovePrefix(<Artist>)),1),$Left($Upper($RemovePrefix(<Artist>)),1),0-9 #))\<Auto Number>"

We should support (..) for Numeric Values and A..Z for ASCII Latin Charset.

jiri

2021-05-25 12:53

administrator   ~0063461

Doesn't seem to be needed. Leaving unresolved, should we ever need to further expand masks, I'd rather consider more generic enhancements, e.g. fully JS backed script functions that's result in endless possibilities.