Wow! That's brilliant. I went ahead and grabbed that whole plugin. Thanks a bunch!
Sean On Wednesday, September 30, 2020 at 4:04:36 PM UTC-7 [email protected] wrote: > Basic documentation: > http://chronicles.wiki/TW5-JsonMangler/#comparefield%20Operator > > Best, > Joshua Fontany > > On Wednesday, September 30, 2020 at 4:03:09 PM UTC-7 Joshua Fontany wrote: > >> 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%2Fjsonmangler >> >> You will want to drag and drop the >> >> - $:/plugins/joshuafontany/jsonmangler/modules/filters/comparefield.js >> >> link in the contents tab. >> >> Best, >> >> Joshua Fontany >> >> On Wednesday, September 30, 2020 at 1:34:39 PM UTC-7 [email protected] >> wrote: >> >>> I'm looking for a way to get tiddlers based on comparing integer fields >>> existing in them. This filter works: >>> >>> [myfieldOne[2]myfieldTwo[2]] >>> >>> I'd like something like: >>> >>> [myfieldOne[lteq[2]]myfieldTwo[lteq[2]]] >>> >>> I know there are compare operators ( >>> https://tiddlywiki.com/#compare%20Operator), but I haven't figured out >>> how to use it to filter the lists. Would this require a subfilter? If so, >>> how would that look? >>> >>> Thanks! >>> Sean >>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2accca82-eac9-4711-9bd4-b6b9a24ac058n%40googlegroups.com.

