on your last line (point 4) try wrapping it in load()
Yes. Sorry, it doesn't work very well without the Load().
Bear in mind global variables can only be created for the current session using
Save() and recalled using
Load(). Like other such expressions where the same variable may be used in a variety of ways, it might be helpful to save it as an expression field. '[Number Tracks]' is easier to work with than 'load(v_tracks[album artist (auto)][album])'.
I can't figure out how to use the track count in a smartlist or view. I was trying to limit my album view to only those albums that contained 5 or more tracks. I can see the album count in a column, but not sure how to put it into a rules for file display? Any suggestions.
I can't explain this, other than to note there are other situations where it's necessary to save an expression as an expression field, and then use that instead of the expression. But this goes beyond that. The expression field [Number Tracks] will work in a
Search, but it's treated as a string rather than an integer. Therefore (I suppose), it still can't be used in a Compare(). It's rather awkward, but values can still be selected individually (e.g.,
-[Number Tracks]=[1],[2],[3],[4],[5] ). Maybe I'm missing something...