Eric,

Thanks for the suggestion But it has not solved it. It is almost as if when 
used in the filter else goes bad

This proves the values are being populated
:1 {{{ [<local-value>] }}}
:2 {{{ [<global-config-value>] }}}
:3 {{{ [<config-default>] }}}

But something is still going wrong as all three of these return the value 
in <<local-value>>
1: {{{ [<local-value>] }}} returns a value is set
4:{{{ [<local-value>else[other]]  }}}
5:{{{ [<local-value>] ~[[other]]  }}}

Weird

Tones

On Monday, 9 November 2020 12:54:10 UTC+11, Eric Shulman wrote:
>
> On Sunday, November 8, 2020 at 4:25:07 PM UTC-8, TW Tones wrote:
>>
>> I have a filtered transclusion as follows
>> {{{ [<local-value>] ~[<global-config-value>] ~[<config-default>] }}}
>> Each of the variables therein are set using a $set widget (more details 
>> below)
>> Unfortunately the second result global-config-value is never the result 
>> if there is no local-value
>>
>
> You have three runs, using an implied "OR", with the expectation that they 
> are evaluated left-to-right, until a value is found.
> I'm not 100% certain why the above syntax doesn't do that.  But you might 
> try using else<...> instead:
>
> {{{ [<local-value>else<global-config-value>else<config-default>] }}}
>
> -e 
>

-- 
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/67312cd5-b5ea-4114-8176-a0cc925c239eo%40googlegroups.com.

Reply via email to