On May 4, 10:08 pm, TonyM <[email protected]> wrote: > Can anyone prove me wrong ? Please > > The showwhen (hide when) plugin allows for the selective display within the > edit and view templates of tiddlers. These are not so sophisticated with > complex logic missing such as "and or not and multiple tags". Unfortunately > these do not work within the content of a tiddler. > > If such a facility was available within a tiddler sophisticated logic could > be embeded and would assist in codding users observed algorithms.
see http://www.TiddlyTools.com/#CoreTweaks specifically, tweak #890, which adds "conditional transclusion" to the <<tiddler>> macro by using an *evaluated parameter value* to calculate a true/false for a new "if:..." parameter, like this: <<tiddler TiddlerName if:{{...conditional logic here...}}>> If the value of the if:... is true, then the transclusion is performed as usual. If the value is false, then the transclusion is skipped and no output is rendered. > A simple example would be; > > A set of questions that would toggle tags on the current tiddler > The selective display of content within the tiddler according to the tags > selected. Examples: <<tiddler ThisTiddler##somesection if:{{tiddler.isTagged('foo')}}>> <<tiddler ThisTiddler##somesection if:{{tiddler.tags.containsAny(['foo','bar','baz'])}}>> > - Add a tags (if already or not) > - Toggle a tag between existing or not > - Remove a tag no matter what > - Do this with multiple tags at once See http://www.TiddlyTools.com/#CheckboxPlugin http://www.TiddlyTools.com/#CheckboxPluginInfo http://www.TiddlyTools.com/#CheckboxToggleTag http://www.TiddlyTools.com/#DailyChecklist enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios ---------- Was this answer useful? If so, please help support TiddlyTools: TiddlyTools direct contributions: (paypal) http://www.TiddlyTools.com/#Donate UnaMesa tax-deductible contributions: http://about.unamesa.org/Participate (paypal) TiddlyWiki consulting: http://www.TiddlyTools.com/#ELSDesignStudios http://www.TiddlyTools.com/#Contact -- 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.

