> <span macro="hideWhen [[tiddler.tags.contains('Locked') ||
> window.location.protocol!='file:']]">
> <span macro='toolbar cancelTiddler'></span>
> </span>
Ah hah! It turns out that the handler() code for the hideWhen macro
actually uses the entire 'paramString'. Thus, the surrounding
[[ and ]] are *not* needed (and, in fact, prevent the boolean
expression from being properly evaluated.
Try this:
<span macro="hideWhen tiddler.tags.contains('Locked')||
window.location.protocol!='file:'">
<span macro='toolbar cancelTiddler'></span>
</span>
Also, for future reference, the boolean operators are:
&&=AND, ||=OR, !=NOT
enjoy,
-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
-~----------~----~----~----~------~----~------~--~---