I have this filter.
{{{ [<currentTiddler>has[caption]get[caption]] [<currentTiddler>!has[caption]get[title]] }}}
What I want is,
- If tiddler has
caption
field set, return it - Else return the
title
field
The above filter works fine.
But I suspect it can be made shorted using then
and else
. But I could not figure out the correct syntax.
What have I tried?
{{{ [[demo04 1]has[caption]get[caption]else[get[title]]] }}}
It returns error.
Related to accordion thread