Hi Samir

The syntax "value=<$transclude tiddler=stateColor index={{!!Phase}}>" is 
incorrect. It is not possible to use widgets as the value of attributes of 
other widgets.

Try this using this line instead:

<$set name="thisColor" value={{{ [[stateColor]getindex{!!Phase}] }}}>

Best wishes

Jeremy

On Wednesday, September 28, 2022 at 3:59:41 PM UTC+1 Samir S. wrote:

> Greetings,
>
> I may have discovered a bug related to the $set widget in tiddlywiki 5.2.2
>
> The following code outputs a correct result but the syntax is incorrect 
> (missing > on the $set statement).
>
> <$set name="thisColor" value=<$transclude tiddler=stateColor 
> index={{!!Phase}}>
> <$text text=<<thisColor>> />
> </$set>
>
> the current tiddler has field Phase set to "étude" (index from the data 
> tiddler)
>
> The stateColor is a data tiddler with properties like
> étude: "#FF0000"
> révision: "#00FF00"
> rattrapage: "#FFC700"
>
> What do you think ?
>

-- 
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/c941fcf6-4d0c-450a-926b-b83acc9b0dden%40googlegroups.com.

Reply via email to