This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

Named Filter Run Prefix

11 juillet 2023 à 9h08

In Depuis : 5.1.23 the named filter run prefixes were implemented. :cascade, :map and :sort have been added later as shown in the diagrams.

A named filter run prefix can precede any run of a filter expression in place of a shortcut run prefix.

:all:and:cascadev5.2.1:else:except:filter:intersection:mapv5.2.0:or:reduce:sortv5.2.0:thenv5.3.0run

Compare named filter run prefix :filter with filter Operator which applies a subfilter to every input title, removing the titles that return an empty result from the subfilter

Compare named filter run prefix :reduce with reduce Operator which is used to used to flatten a list of items down to a single item by repeatedly applying a subfilter

Within the filter runs prefixed with :reduce, :sort, :map and :filter, the currentTiddler variable is set to the title of the tiddler being processed.
The value of currentTiddler outside the subfilter is available in the variable ..currentTiddler Depuis : 5.2.0

Also see: Interchangeable Filter Run Prefixes