mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-17 08:50:50 +00:00
![Erwan Moreau](/assets/img/avatar_default.png)
the previous description was erroneous: the operand is not the number of entries to return, but the position of the entry to select.
15 lines
455 B
Plaintext
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` |
|