2023년 3월 25일 오후 4:35
[[$:/palettes/Vanilla]getindex[background]]
background
of the DataTiddler $:/palettes/Vanilla[all[shadows+tiddlers]tag[$:/tags/Palette]getindex[background]]
[[ListopsData]getindex[DataIndex]]
DataIndex
in ListopsData is not returned by the getindex
operator[[ListopsData]has:index[DataIndex]] :map[getindex[DataIndex]]
The above example works by first checking if the input title has the property DataIndex
and then using the Map Filter Run Prefix to replace the title with their value of that property. If the input tiddler does not have the property, an empty selection is returned. The subsequent Map Filter Run Prefix outputs an empty string when its run returns an empty selection (because the property is empty).
[[$:/palettes/Vanilla]indexes[]] :filter[[$:/palettes/Vanilla]getindex<currentTiddler>count[]compare:number:eq[0]]
In the above example, count
is used to check if getindex
returns a result (i.e. the corresponding property has a value) or not.