mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-07 02:19:13 +00:00
Add change note
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
title: $:/changenotes/5.4.0/#8972
|
||||
description: Multi-valued variables and let filter run prefix
|
||||
release: 5.4.0
|
||||
tags: $:/tags/ChangeNote
|
||||
change-type: enhancement
|
||||
change-category: hackability
|
||||
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/8972
|
||||
github-contributors: Jermolene
|
||||
|
||||
This PR introduces a new filter run prefix `:let` that assigns the result of the filter run to a variable that is made available for the remaining filter runs of the filter expression. It solves the problem that otherwise it is impossible to compute values for filter operator parameters; parameters can only be a literal string, text reference or variable reference. See [[Multi-Valued Variables]] for more details.
|
||||
|
||||
This PR also introduces multi-valued variables, the ability to store a list of results in a variable, not just a single string. They can be assigned with the new `:let` filter run prefix, or the existing `<$let>` widget. The full list of values can be retrieved using round brackets instead of the usual angle brackets. In all other contexts only the first item in the list is used as the variable value.
|
||||
Reference in New Issue
Block a user