sorry, typo: Does it help to *add a* tag to the filter? <$list filter="[tag[sang]skift[1]]">< span class="red"><$view field="1"/></span></$list><$list filter="[tag[sang]!skift[1]]"><$view field="1"/></$list>
On Sunday, May 25, 2014 3:05:48 PM UTC-7, cmari wrote: > > Does it help to tag to the filter? > <$list filter="[tag[sang]skift[1]]"><span class="red"><$view > field="1"/></span></$list><$list filter="[tag[sang]!skift[1]]"><$view > field="1"/></$list> > > On Sunday, May 25, 2014 2:44:12 PM UTC-7, Måns wrote: >> >> Hi cmari >> >> I want to create a quiz battle between two teams, where one team chooses >> a number/button - the teacher clicks it - and a word from a full sentence >> gets revealed. >> If the word isn't red the team will try to guess/remember the full >> sentence. >> If the word is red - the other team will have a go at it - or choose yet >> another number/button... >> >> When I set up the quiz I want to be able to choose which field value is >> formatted as red text. >> >> >> My attempt http://hitsang.tiddlyspot.com >> >> Here "mark" is "skift" >> >> As you can see : >> <$list filter="[skift[1]]"><span class="red"><$view >> field="1"/></span></$list><$list filter="[!skift[1]]"><$view >> field="1"/></$list> >> >> shows both versions of the text value of the field "skift" (both black >> and red) - and if you set the value of the field "skift" to anything other >> than "1" - the text is hidden... >> >> There must be something wrong somewhere ...? >> >> Cheers Måns Mårtensson >> >> Den søndag den 25. maj 2014 23.21.11 UTC+2 skrev cmari: >>> >>> Hi >>> >>> Hi Måns, >>> Maybe I don't understand what you're doing, but the following seemed to >>> work for me: >>> >>> <$list filter="[!mark[1]]"><$view field="1"/></$list> >>> cmari >>> >>> >>> On Sunday, May 25, 2014 2:11:33 PM UTC-7, Måns wrote: >>>> >>>> <$list filter="[!field:mark[1]]"><$view field="1"/></$list> also >>>> doesn't work... >>>> I expected that it would show the text value of my field "1" if the >>>> field "mark" had another value than "1"... >>>> >>>> Cheers >>>> >>>> Den søndag den 25. maj 2014 22.42.36 UTC+2 skrev Måns: >>>>> >>>>> Made a typo - sorry >>>>> >>>>> >>>>>> How do I create the opposite effect? - sth like when the value of the >>>>>> field "mark" is not 1 - then show value og field one (no class)? >>>>>> >>>>> >>>>> should have been: >>>>> >>>>> How do I create the opposite effect? - sth like when the value of the >>>>> field "mark" is not 1 - then show value of field one (no class)? >>>>> >>>>> <$list filter="![mark[1]]"><$view field="1"/></$list> (doesn't work) >>>>> >>>>> Cheers Måns Mårtensson >>>>> >>>> -- 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. For more options, visit https://groups.google.com/d/optout.