1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 09:43:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/indexes.tid

17 lines
825 B
Plaintext
Raw Normal View History

2014-04-10 18:56:51 +00:00
created: 20140410103123179
modified: 20150203185150000
2015-01-19 19:37:26 +00:00
tags: [[Filter Operators]]
title: indexes Operator
2014-04-10 18:56:51 +00:00
type: text/vnd.tiddlywiki
2015-01-19 19:37:26 +00:00
caption: indexes
op-purpose: select all data properties of the input titles
op-input: a [[selection of titles|Title Selection]]
op-parameter: none
op-output: all the property names or indices contained in the input data tiddlers
2014-04-10 18:56:51 +00:00
2015-01-19 19:37:26 +00:00
Each input title is processed in turn, and is ignored if it does not denote a [[data tiddler|DataTiddlers]]. The list of property names is retrieved from the data tiddler (in no particular order) and then [[dominantly appended|Dominant Append]] to the operator's output.
2014-04-10 18:56:51 +00:00
Where a tiddler's [[content is JSON|JSONTiddlers]] with an array as its root, the <<.op indexes>> operator retrieves a selection of integer indices instead.
2014-04-10 18:56:51 +00:00
2015-01-19 19:37:26 +00:00
<<.operator-examples "indexes">>