Thanks Alvaro. I'm happy to say things worked out.
<:-)
On Monday, February 22, 2021 at 6:39:51 PM UTC+1 Álvaro wrote:
> I have remembered that is possible make it shorter because you don't need
> to know the output, you just need know if there is only one at least. The
> then operator is unnecesary but we need change the last operator in the*
> Filter Run*. We can do someting like this
>
> {{{ [all[tiddlers]contains:tags[HelloThere]*limit[1]*] }}}
>
> El domingo, 21 de febrero de 2021 a las 23:21:25 UTC+1, Mat escribió:
>
>> Mark and Alvaro, your help is much appreciated, and you gave the clues
>> needed to make it work.
>> Thank you!
>> <:-)
>> On Sunday, February 21, 2021 at 6:15:08 PM UTC+1 Álvaro wrote:
>>
>>> I think I do other typo
>>>
>>> If I don't missunderstand something
>>>
>>> <$list filter="[all[tiddlers]!contains:id<value>then[TRUE]unique[]]" >
>>>
>>> El domingo, 21 de febrero de 2021 a las 18:04:55 UTC+1, Álvaro escribió:
>>>
>>>> Agggh! I wrote "*all[current]*" but I wanted to write "*all[tiddlers]*"
>>>>
>>>> Now i put a more simple example which works in tiddlywikiDOTcom , there
>>>> are 6 tiddler with tag "HelloThere", then filter return 6 times "TRUE" but
>>>> It was trimmed with (undocumented) unique operator.
>>>>
>>>> {{{ [all[tiddlers]contains:tags[HelloThere]then[TRUE]unique[]] }}}
>>>>
>>>> If change the field tags to tagss the output of filter is empty.
>>>>
>>>> Now you can put your action inside of a listwidget.
>>>>
>>>> <$list filter="[all[tiddlers]contains:id<value>then[TRUE]unique[]]" >
>>>> *Do X*
>>>> </$list>
>>>> El domingo, 21 de febrero de 2021 a las 16:11:35 UTC+1, Mark S.
>>>> escribió:
>>>>
>>>>> Try
>>>>>
>>>>> [id<id>then[yes]else[no]compare:string:eq[no]]
>>>>>
>>>>> On Sunday, February 21, 2021 at 1:47:35 AM UTC-8 Mat wrote:
>>>>>
>>>>>> Need some filter help. Pseudocode:
>>>>>>
>>>>>> <$vars value={{foo!!value}}>
>>>>>> filter=Among all tiddlers with an id field, if there is no tiddler
>>>>>> with id:<value> then do X but if there is a tiddler with id:<value> then
>>>>>> do nothing
>>>>>> </$vars>
>>>>>>
>>>>>> I assume it is some kind of then ... else construct but I can't
>>>>>> quite materialize it and I'm getting confused by how I loose the tiddler
>>>>>> titles if I look at their field values. Maybe I need something with the
>>>>>> subfilter operator but I'm not sure how... ?
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>> <:-)
>>>>>>
>>>>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/80e7d40a-3248-4870-97b7-d0d20b5ab470n%40googlegroups.com.