Help with a small script please

14 views
Skip to first unread message

axelm

unread,
Aug 19, 2011, 3:40:25 PM8/19/11
to tiddl...@googlegroups.com
Hello All,

I have neat little script:

<script>var tiddler = store.getTiddler(title); if (tiddler.isTagged("A")) return "Done";</script>

How do I change it so that it returns "Done" if the tag "A" is NOT there?
Tried this "tiddler.isNOTTagged" but that doesn't work.

Please help,

axelm

whatever

unread,
Aug 19, 2011, 3:46:33 PM8/19/11
to TiddlyWiki
Add an exclamation point in front of the condition:
if (!tiddler.isTagged("A"))

Or use an else statement.

w
Reply all
Reply to author
Forward
0 new messages