On Saturday, July 18, 2020 at 12:41:00 PM UTC-7, Mark S. wrote:
>
> This will do what you want:
> <$vars foo=bar>
> <$vars my1={{!!myfield}}>
> <$wikify text={{!!myfield}} name=my2>
> {{!!myfield}}, is it prefixed "b"? {{{ [<my2>prefix[b]then[YES!]] }}}
> </$wikify>
> </$vars>
> </$vars>
> This will work whether myfield contains <<foo>> or "boo!".
>

Note that in Mark's reply, the variable "my1" is not actually used, so it 
can be removed from the code:
<$vars foo=bar>
<$wikify text={{!!myfield}} name=my2>
{{!!myfield}}, is it prefixed "b"? {{{ [<my2>prefix[b]then[YES!]] }}}
</$wikify>
</$vars>

The important idea here is this:

When you write {{!!myfield}} *outside* a filter, it automatically gets 
"wikified"
to *display* the correct value, "bar".

However, when you write {!!myfield} *inside* a filter, no wikification 
occurs,
so the value that is used is literally "<<foo>>".

Mark's solution uses the $wikify widget to explicitly convert the field 
value from
a variable reference to the *value* of that variable reference, and only 
then,
use that result within the filter.

-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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a81a23a0-09af-422b-bd4a-b996bfb06a4ao%40googlegroups.com.

Reply via email to