Great - and again - great!!
Thank you very much - Now it works perfectly!

YS Måns Mårtensson

On May 8, 2:24 am, Eric Shulman <[email protected]> wrote:
> > Eric - something isn't quite right, - it renders a checkmark even if
> > the value is false?!
>
> (tiddler.fields["rapport"]?"√":"")
>
> oops!
>
> Although tiddler.fields["rapport"] may be *assigned* a boolean true/
> false value, it is actually *stored* as literal text, either "true" or
> "false".  However, evaluating this stored text value always returns
> true, because all non-blank text strings are considered to have a
> boolean value of true.  Thus, both "true" and "false" are, in fact,
> evaluated as true, resulting in a checkmark being displayed all the
> time.
>
> Fortunately, we *can* get back the correct original boolean value, by
> adding a simple text comparison to the conditional expression, like
> this:
>
> (tiddler.fields["rapport"]=="true"?"√":"")
>
> Translation:
> if the text stored in the custom field named "rapport" matches the
> literal text, "true", then use "√", otherwise use blank text.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
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