Eric - something isn't quite right, - it renders a checkmark even if
the value is false?!

I wrote this:
<<forEachTiddler
    where
       'tiddler.tags.contains("Bøger") && tiddler.data("wherekept") &&
tiddler.data("wherekept").contains(context.viewerTiddler.title)'

    sortBy
       'tiddler.title.toUpperCase()'

    write '""+ (tiddler.fields["rapport"]?"√":"") +" [x
(rapport@"+tiddler.title+")] <<siteMap [["+tiddler.title+"]] . sliders
$)){{indent{[img(40px+,)["+store.getValue(tiddler,"title")+"
|"+store.getValue(tiddler,"billede")+"]["+tiddler.title+"]]}}}"'

        none '"//ingen \"bog\" er opgivet endnu//"'
>>
- and I get a √ - even if I 'uncheck' the  [x(rapport@"+tiddler.title
+")] .
I've tried to remove  [x(rapport@"+tiddler.title+")] - and toggle the
rapportfieldvalue from the "real/actual" tiddler - same result...
Can you tell me what to change in "+ (tiddler.fields
["rapport"]?"√":"") +" ?

YS Måns Mårtensson

On May 7, 2:21 am, Eric Shulman <[email protected]> wrote:
> > I'd like to switch the output of write '""+tiddler.fields["rapport"]
> > to a checkmark: √ instead of 'true' - AND nothing OR '-' (minus) when
> > the fieldvalue is false...
>
> Replace:
>    tiddler.fields["rapport"]
> with:
>    (tiddler.fields["rapport"]?"√":"-")
>
> -e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to