1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-30 09:13:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/previous.tid

19 lines
810 B
Plaintext
Raw Normal View History

2014-04-10 18:56:51 +00:00
created: 20140410103123179
modified: 20150124171748000
tags: [[Filter Operators]] [[Field Operators]] [[Order Operators]]
title: previous Operator
2014-04-10 18:56:51 +00:00
type: text/vnd.tiddlywiki
caption: previous
purpose: find which titles in a <<.field list>> field precede the input ones
2014-04-10 18:56:51 +00:00
<$macrocall $name=".operator-def"
input="a [[selection of titles|Title Selection]]"
parameter="a tiddler title"
paramName="t"
output="a selection containing each title that immediately precedes each of the input titles in the <<.field list>> field of <<.place t>>"
/>
2014-04-10 18:56:51 +00:00
Each input title is processed in turn, and its predecessor is located in the <<.field list>> field and appended to the output. If a title is not listed in the field, or is the first item there, then it contributes nothing to the output.
2014-04-10 18:56:51 +00:00
<<.operator-examples "previous">>