Found this: <<tiddler {{"SomeTiddler".text!=0?"SomeTiddler":""}}>>
This works by itself so I'm trying to put in in the fET (which usually does
not have a problem with simple tiddler macros):
<<forEachTiddler where 'tiddler.tags.contains("foo")'
write '
"*[["+tiddler.title+"]]\n
** <<tiddler {{"+tiddler.title+".text!=0?"+tiddler.title+":"" $)) \n"'
>>
this gives error ( <<forEachTiddler ...>>: SyntaxError: missing ; before
statement )
but, as explained initially, my hope is for the result to be either *nothing
*or **text\n
I.e the bullets and newline are included in the result from the tiddler
macro. Maybe it's possible using "with:" and sending in bullets and newline
as parameters...?
...or if there's any better solution all together (hopefullystill with the
fET tho as it in actual application it contains more.)
Thoughts?
<:-)
On Tuesday, June 11, 2013 11:34:16 AM UTC+2, Mat wrote:
>
> Via a forEeach I get:
>
> *tiddlerA
> ** contentA
> *tiddlerB
> **contentB
> etc
>
> The second level bullets are from a simple <<tiddler "tiddler.title">>
> inside the fET. However, sometimes there is no content resulting in empty
> second-levels. How can I prevent this (inside the fET)? For example, can I
> put a condition in the tiddler macro to test if there is any text, but also
> format the output to return ** and \n only if the condition is true - and
> if it's not true it returns nothing?
>
> Thank you!
>
> <:-)
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.