I posted an issue on github shortly after PMario's remark.

See:  https://github.com/Jermolene/TiddlyWiki5/issues/1937

My work-around for this issue is to either substitute a <$list> widget for
the <$set>, or to enclose the <$set> code in a <$list> widget with a
similar filter and an unused variable, so as to force a refresh whenever
the filter parameter changes.  This sometimes takes some clever hackery
with dummy values and first[]...

Unfortunately, it's really hard to make example code for your case, because
drafts have a title of "Draft of myMagicTitle", and editing the title of a
non-draft tiddler creates duplicates!

Regards,
Evan

On Wed, Sep 16, 2015 at 11:42 AM, Spangenhelm <goo...@florentv.com> wrote:

> Hi, i am interested in this issue too because i have a problem with
> conditionnal assignement of a variable using the <$set> widget (see below
> the summary)
>
> Conditional Variable Assignment:
>
> This form of the set variable widget chooses one of two specified values
> according to whether a filter evaluates to an empty list. Here's an example
> that sets a variable according to whether the current tiddler is called
> "myMagicTitle":
>
> <$set name="myVariable" filter="[all[current]field:title[myMagicTitle]]" 
> value="It's magic" emptyValue="It's not magic">
> <$text text=<<myVariable>>/>
> </$set>
>
>
>
> This one does not seem to refresh either so whatever you put in the filter
> part the widget display the default value. Strange but it might be simply
> related to your problem..
> Also if, as pmario proposed, you do publish it in github's issue please
> don't forget to add the link to it here so we can follow it.
>
> Thank you
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/uNeLW76wmWM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/c0dfaa6b-29f0-4d77-b9c2-93cacd05045f%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/c0dfaa6b-29f0-4d77-b9c2-93cacd05045f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAEKipHnMwHS2YyQTzBNGnAAbVHEbD1AzgvdCgR8FY0%2Brto%3DLeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to