This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

Let Filter Run Prefix

7th March 2025 at 9:22pm
purposeassign the title list resulting from previous filter runs to a multi-valued variable
inputall titles from previous filter runs
outputan empty title list is always returned from the "let" filter run prefix
New in v5.4.0
:letrun

The :let filter run prefix assigns the title list resulting from previous filter runs to a multi-valued variable. The variable is named with the first result returned by the filter run.

The variable is made available to the remaining filter runs in the filter expression. Only the first item in the result list is returned when the variable is accessed in the usual way (or an empty string if the result list is empty). Using round brackets instead of angle brackets around a variable name as an operand retrieves the complete list of items in the result list.

This prefix has an optional shortcut syntax symbol =>run. For example:

=[<myfun1>] =[<myfun2>] =>myvar

The :let filter run prefix always clears the current result list.