Here’s the example from https://tiddlywiki.com/#Functions
\function .myfun(param:"2")
[<param>multiply[1.5]]
\end
{{{ [.myfun[2]] }}}
It works as expected. I only added a dot to its name.
Now I define a variable:
<$let p=2>
<<p>>
</$let>
This works as expected too.
Now I try to combine these and pass a variable instead of a hardcoded value as parameter to the function:
<$let p=2>
{{{ [.myfun[<<p>>]] }}}
</$let>
Surprisingly, this doesn’t work.
But I’m trying to use a variable inside a filter, perhaps I should do it like this:
<$let p=2>
{{{ [.myfun[<p>]] }}}
</$let>
This doesn’t work either.
Frankly, I feel like the guy from this old video https://m.youtube.com/watch?v=pQHX-SjgQvQ