Hi Eric, Yes, simpler is always better as long as it works correctly! I like your solution! If I am correct, this code should not update the color field automatically! I mean for a tiddler called *test*, can I use something like this?
\define colorCSS() rgb($(rgbArg1)$,$(rgbArg1)$,$(rgbArg3)$); *color* field: <<colorCSS>> Here the color field shall be updated dynamically! If so then what Atro has requested can be obtained <$vars thisSecond={{{ [tag[foo]count[]] }}} > On Tue, Jun 22, 2021 at 11:34 PM Eric Shulman <elsdes...@gmail.com> wrote: > On Tuesday, June 22, 2021 at 11:25:23 AM UTC-7 cj.v...@gmail.com wrote: > >> Is there some other way of getting the result of a filter that's less >> weird than using TiddlyWiki's triple curly brackets ? > > I just threw that together quickly as an example re getting color " >> *filter*ily(?)" >> It would be great to see some alternative approaches, I think. >> > > Instead of using filtered transclusion (the tripled curly braces) to > concatenate values stored in variables, you can use a macro definition, > like this: > > *\define colorCSS() border:25px solid > rgb($(rgbArg1)$,$(rgbArg1)$,$(rgbArg3)$);* > <$vars thisSecond=<<now ss>> > > <$vars rgbArg1={{{ [<thisSecond>multiply[3]] }}} rgbArg3={{{ > [<thisSecond>multiply[5]] }}}> > <div style=*<<colorCSS>>*>Some Text</div> > </$vars> > </$vars> > > I think this is a much easier syntax to understand and use > > -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/ce03908d-17eb-460f-aa28-9e1d4d9fd852n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/ce03908d-17eb-460f-aa28-9e1d4d9fd852n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAAV1gMD7z_W6N-_L8MUGMQ1gQ9P4vw2mHi5P0Ri-CVJ_9K__PA%40mail.gmail.com.