1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-02 02:03:14 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/FilterOperator nth.tid
Erwan Moreau 58948d2093 Fixed the description of the operator
the previous description was erroneous: the operand is not the number of entries to return, but the position of the entry to select.
2014-10-26 18:53:35 +00:00

15 lines
455 B
Plaintext

created: 20140410103123179
modified: 20140410103123179
tags: Filters
caption: nth
title: FilterOperator: nth
type: text/vnd.tiddlywiki
Without an operand, the ''nth'' filter operator returns the first entry in the current list. The optional operand specifies the position of the entry in the list.
For example:
|!Filter String |!Description |
|`one two three four five +[nth[]]` |Returns `one` |
|`one two three four five +[nth[3]]` |Returns `three` |