This macro can return the name of tiddler and a true/false if it has / has 
not text

\define hasText(tid)
<$set name="Tiddler" value=<<__tid__>> >
<$reveal type="match" default=<<Tiddler>> text={{{ [<Tiddler>has[text]] }}}>
<<Tiddler>>: True
</$reveal>
<$reveal type="nomatch" default=<<Tiddler>> text={{{ [<Tiddler>has[text]] 
}}}>
<<Tiddler>>: False
</$reveal>
</$set>
\end



   - Test

In https://tiddlywiki.com/ create two tiddlers one Test01 and the other 
Test02, put a text in the first tiddler and leave empty the second, then 
try as below

<<hasText Test01>>
<<hasText Test02>>



The results will be

Test01: False 

Test02: True 


If you like to use it inside a list widget, tag above two tiddlers with 
something e.g test

<$list filter="[tag[test]]">
<$macrocall $name="hasText" tid=<<currentTiddler>> /><br>
</$list>


You will have then:

Test01: False 
Test02: True 


Good luck
Mohammad

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/46fb8882-71fe-4ac0-bef9-ac389dafea20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to