Say, I have a tiddler $:/talha131/video/eg1. I want to test if $:/talha131/video/eg1/text exists.
Problem
- If
$:/talha131/video/eg1is present - Then check if
$:/talha131/video/eg1/textis present - If
$:/talha131/video/eg1/textis present then transclude its content
What have I tried?
I am working on a macro.
\define video(src, caption:"")
<$let url= {{{ [<__src__>is[tiddler]get[_canonical_uri]] }}}>
<$let subtitle= {{{ [<__src__>is[tiddler]get[video-subtitle]] }}}>
<$let url= {{{ [<__src__>is[tiddler]get[_canonical_uri]] }}}> works well to check if src is present. If it is, then it reads its _canonical_uri field.
But this syntax does not work, if I want to append a string to the tiddler title, <__src__>/text.

<$let video_text= {{{ [<__src__>/textis[tiddler]get[text]] }}}>

<$let video_text= {{{ [[<__src__>/text]is[tiddler]get[text]] }}}>
What’s the corect syntax to check if a tiddler exists inside a macro?