2022-05-06 14:01:17 +00:00
|
|
|
title: CustomOperators/NestedParameterised
|
|
|
|
description: Nested parameterised custom operator usage
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
|
|
|
|
title: Output
|
|
|
|
|
|
|
|
\whitespace trim
|
2022-05-23 15:40:21 +00:00
|
|
|
\function .dividebysomething(first:ignored,factor:0.5)
|
2022-05-06 14:01:17 +00:00
|
|
|
[divide[2]multiply<factor>]
|
|
|
|
\end
|
|
|
|
|
2022-05-23 15:40:21 +00:00
|
|
|
\function .multiplebysomething(first:ignored,factor:2)
|
|
|
|
[multiply[2].dividebysomething[],<factor>]
|
2022-05-06 14:01:17 +00:00
|
|
|
\end
|
|
|
|
|
2022-05-23 15:40:21 +00:00
|
|
|
<$text text={{{ [[123].multiplebysomething[]] }}}/>
|
2022-05-06 14:01:17 +00:00
|
|
|
-
|
2022-05-23 15:40:21 +00:00
|
|
|
<$text text={{{ [[123].multiplebysomething[x],[4]] }}}/>
|
2022-05-06 14:01:17 +00:00
|
|
|
|
|
|
|
+
|
|
|
|
title: ExpectedResult
|
|
|
|
|
|
|
|
<p>246-492</p>
|