diff --git a/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid b/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid index fc162b100..f76063ad8 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid @@ -1,5 +1,8 @@ created: 20211130114857532 -modified: 20211130132353406 +filter1: [prefix[ca]then[ca]] +filter2: [suffix[at]then[at]] +filter3: other +modified: 20211204010918504 tags: [[Filter Run Prefix Examples]] [[Filter Syntax]] [[Cascade Filter Run Prefix]] title: Cascade Filter Run Prefix (Examples) type: text/vnd.tiddlywiki @@ -20,3 +23,24 @@ For each input title, each of these filters is now applied to in turn until the <<.operator-example 1 """[all[shadows+tiddlers]] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]get[text]] +[!is[blank]limit[10]]""">> +!! Extended example + +This example illustrates step-by-step how the <<.op :cascade>> filter run works. + +A filter expression whose output returns a list of filters is required. Typically such a filter expression will construct the list of filters by querying some field in a set of tiddlers (likely via tag). To keep this example self-contained, 3 filters are stored in the //filter1//, //filter2// and //filter3// fields of this tiddler. [[Text references|TextReference]] and instances of the [[append operator|append Operator]] are used to combine the fields into a list of filters. + +The filter `[{!!filter1}append{!!filter2}append{!!filter3}]`, generates this list of filters: + +
<$text text=<>/>