So, I I try {File.Categories|count:true} in VarToy, only to have 1 or 0 returned for a given file - I'm getting confirmation that said file(s) have categories, but not how many. So, what is wrong here?
Works here.
{File.Categories|filter:^Color}
{File.Categories|filter:^Color;count:true}
Returns
Colors|Red;Colors|Green
2
in my test case.
The 2023 release notes have one related entry:
#1863
Variables and Count/Sum/Avg |
These functions are now supported for normal variables, not only for repeatable metadata values and category variables. |
I currently have no IMatch 2021 version running anywhere so I cannot test if count worked correctly in that version.
Maybe another user can try this?
I'm able to get this function to work only with the addition of a filter: argument. Is that also the case on your end?
This works:
{File.Categories|filter:.;count:true}
This doesn't:
{File.Categories|count:true}
Works here (see screenshot).
sc1.jpg
Works for me also. No need to add a filter.