Grouping Functions: Difference between revisions

From wiki.jriver.com
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
GroupCount() can be used to count the members of a group of files.
GroupCount() can be used to count the members of a group of files.


Argument ''field'' is optional (defaults to {{monospace|current grouping}}).<br />
Argument ''field'' is optional (defaults to the current grouping of files).<br />
| examples=
| examples=
'''Example Threads:'''
'''Example Threads:'''
Line 30: Line 30:
Smartly summarizes the members of a specified group (mode, mean, min, max, etc as is most logical for that grouping).
Smartly summarizes the members of a specified group (mode, mean, min, max, etc as is most logical for that grouping).


Argument ''field'' is optional (defaults to {{monospace|current grouping}}).<br />
Argument ''field'' is optional (defaults to the current grouping of files).<br />
| examples=
| examples=
'''Example Threads:'''
'''Example Threads:'''

Revision as of 05:42, 26 January 2016

The expression language is largely used to evaluate one file at a time. The grammar implies that something like Field(Artist) should get the Artist value for the current file being evaluated. Grouping Functions are a special class of functions that operate on a group of files, instead of on individual files. A simple example would be a function to count the number of artists in the current group.

Grouping Functions may only be used in relevant areas where Media Center displays groups of files (most notably in Categories and the Tag Action Window), and not to individual file listings (such as an expression column in a File Details View).

GroupCount(…)

Counts the members of a specified group (in a category or field).
Description GroupCount(field)

GroupCount() can be used to count the members of a group of files.

Argument field is optional (defaults to the current grouping of files).

Examples Example Threads:
(Back to top)   (Function index)

GroupCount(…)

Counts the members of a specified group (in a category or field).
Description GroupSummary(field)

Smartly summarizes the members of a specified group (mode, mean, min, max, etc as is most logical for that grouping).

Argument field is optional (defaults to the current grouping of files).

Examples Example Threads:
Matt introduces Grouping Functions
Use field names, not field values (square bracket notation)
(Back to top)   (Function index)