The core "compare[X]" operator only compare each "input title" to the operand (i.e. X). It has options to compare strings, numbers, equal to, greater than, etc.... BUT the limitation of only comparing input-title means you would have to use "get[]" or similar to retrieve the data, thus losing the "title" during the filter-processing.
I don't think "subfilter[]" will help here, because the compare[] op, as I said, returns the data that passes the compare-function given, NOT the title.
So I rolled my own. It is included in the JSONMangler plugin, but can be pulled into any wiki if you go to the plugin-contents tab, and drag the filter you want to your own wiki:
http://chronicles.wiki/TW5-JsonMangler/#%24%3A%2Fplugins%2Fjoshuafontany%2FjsonmanglerYou will want to drag and drop the
- $:/plugins/joshuafontany/jsonmangler/modules/filters/comparefield.js
link in the contents tab.
Best,
Joshua Fontany