Hi All

Still cant get this to work. Maybe to explain the context a little
more.

The TW is seen over the web and participantes need to access
information on a dvd that they have......so TW needs to know the drive
number for the DVD drive for their computer. So the tiddler
CDriveNumber has a bit of text explaining why this is necessary and
then the line  <<option txtDVD>>   thinking that the first time they
open the file.....the line

<<tiddler CDriveNumber if:{{config.options.txtDVD===false}}>> will
trigger and allow them to input the appropriate number (actually a
letter)........however on re-opening this code is seen as false and
the CDriveNumer tiddler displayed........and the <<option txtDVD.. box
is howing the previously defined paramenter....so txtDVD is
defined....but the conditional if is not evaluating it ????

Help
Skye

On Nov 22, 8:54 pm, Eric Shulman <elsdes...@gmail.com> wrote:
> > <<tiddler CDriveNumber if:{{config.options.txtDVD == "undefined"}}>>
>
> try this:
>
> <<tiddler CDriveNumber if:{{config.options.txtDVD===undefined}}>>
>
> * omit the quotes around undefined.  It is a javascript intrinsic
> constant, rather than a string literal.
> * use the "exactly equal" operator (===) rather than the normal
> equality (==).  In Javascript, the constants: 0, false, undefined and
> "" (empty text string) are all equivalent when compared using ==, but
> are distinct values when compared using ===.
>
> Note: support for the <<tiddler ... if:{{...}}>> parameter usage is
> added by a "tweak" contained in
>    http://www.TiddlyTools.com/#CoreTweaks
>
> enjoy,
> -e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to