mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-07-05 19:53:17 +00:00
17 lines
520 B
Plaintext
17 lines
520 B
Plaintext
![]() |
created: 20201004154413968
|
||
|
modified: 20201004154413968
|
||
|
tags: [[Operator Examples]] [[reduce Operator]]
|
||
|
title: reduce Operator (Examples)
|
||
|
type: text/vnd.tiddlywiki
|
||
|
|
||
|
\define add-numbers() [get[text]length[]compare:integer:gteq[1000]]
|
||
|
\define display-variable(name)
|
||
|
''<$text text=<<__name__>>/>'': <code><$text text={{{ [<__name__>getvariable[]] }}}/></code>
|
||
|
\end
|
||
|
|
||
|
These examples use the following predefined variables:
|
||
|
|
||
|
* <<display-variable add-numbers>>
|
||
|
|
||
|
<<.operator-example 1 "[tag[HelloThere]filter<larger-than-1k>]">>
|