Mohammad,

Am I correct restating your requirement that "given three tiddlers select 
the first one you find?"

I would think this works, if not your own example
<$list filter="[tag[a]] [tag[b]] [[tid3]] +[limit[1]]">
<<currentTiddler>>
</$list>

Tony


On Wednesday, December 4, 2019 at 5:28:21 PM UTC+11, Mohammad wrote:
>
> How to select among three tiddlers in below priority?
>
> - if tid1, tid2, and tid3 are existed then return tid1
> -if tid2, and tid3 are existed return tid2
> -if tid1 and tid2 are NOT existed then return tid3
>
> Note the first two tiddlers come from a filter result and we don not know 
> their name in advance like 
>
>    - [tag[a]] for tid1
>    - [tag[b]] for tid2
>
> I thought the below code may work, what do you propose?
>
> <$list filter="[tag[a]] [tag[b]] +[limit[1]]" emptyMessage="tid3">
> <<currentTiddler>>
> </$list>
>
>
> --Mohammad
>
>

-- 
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/766f94ea-3e43-4934-83e5-8f407ba579bd%40googlegroups.com.

Reply via email to