2015-02-24 16:41:16 +00:00
created: 20150221151358000
2024-02-22 13:51:58 +00:00
modified: 20240221165833692
2015-02-24 16:41:16 +00:00
tags: [[dumpvariables Macro]] [[Macro Examples]]
title: dumpvariables Macro (Examples)
type: text/vnd.tiddlywiki
2024-02-22 13:51:58 +00:00
The following example will list all variables that contain the word "example" in uppercase ''and'' also lowercase, due to the default setting of the <<.olink search>> operator.
2015-02-24 16:41:16 +00:00
<$macrocall $name=".example" n="1"
2024-02-16 15:20:48 +00:00
eg="""<$let EXAMPLE="123" >
2024-02-21 16:39:00 +00:00
<<dumpvariables subfilter:"[search::some[EXAMPLE dumpvariables]]">>
2024-02-16 15:20:48 +00:00
</$let>"""/>
2024-02-21 16:39:00 +00:00
Listing only specific varibles can be achieved using the <<.olink search>> operator as a subfilter
2024-02-16 15:20:48 +00:00
2024-02-22 13:51:58 +00:00
<$macrocall $name=".example" n="2"
eg="""<$let EXAMPLE="123" >
<<dumpvariables subfilter:"[search::casesensitive,some[EXAMPLE dumpvariables]]">>
</$let>"""/>
2024-02-16 15:20:48 +00:00
<$macrocall $name=".example" n="3"
2024-02-22 13:51:58 +00:00
eg="""<<dumpvariables subfilter:"[prefix[.a]]">>"""/>
2024-02-21 16:39:00 +00:00
The following list will be very long. It shows all variables known within this tiddler. Using the macro in a different context. Eg: the sidebar, variables will have different values.
<$macrocall $name=".example" n="4"
2024-02-16 15:20:48 +00:00
eg="""<<dumpvariables>>"""/>
2015-02-24 16:41:16 +00:00