On Jun 23, 11:56 pm, Scott Steele <[email protected]> wrote:
> The conditional I'm trying to understand is {{{ if(!tag || !
> tag.tags.contains("excludeLists")) }}}
> It comes right after {{{ var tag =
> store.getTiddler(tiddler.tags[t]); }}}
>
> Why is !tag in there as the first part of the OR formula? It looks
> like it will never evaluate to true if there's a value for tag. It
> will evaluate to true if tag is empty, but that would mean we've gone
> through the entire tag list and are trying to keep going even though
> we're inside of a for loop based on the length of that tag list,
> right?
>
> So why is that conditional an OR formula with !tag as one of the
> components?

var tag = store.getTiddler(tiddler.tags[t]);

In TW a tag can be a tiddler too. Plugins are tagged "systemConfig".
If you want, that systemConfig should be not listed, you can create a
tiddler named systemConfig tag it "excludeLists". it will not be
listed anymore.

so

store.getTiddler(tiddler.tags[t]) ... returns a tiddler with the tag
name.
If it exists the var tag will point to the tiddler object
If it doesn't exist (eg: there is no systemConfig tiddler) it returns
"null"

hope this helps.
-m

-- 
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