Hi Jan,
- Do you actually have calc @ tb5 installed?
- Did you save and reload your wiki (since it's a JavaScript module)?
--
- your $set widget openening tag appears to not have a closing ">"
- also, you could just use one $vars widget and not use $set at all
Best wishes,
Tobias.
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9f6b246b-4767-4f2c-8297-64c4cf3d0fae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Calc does not render if the counter-Field does not exist or is empty.
<<calc "0=>!!counter" +1>><<calc "7=>!!counter" +1>><<calc "7=>with spaces!!counter" +1>><<calc [[7=>with spaces!!counter]] +1>><<calc "0=>!!counter" +1>>Meaning:
- if counter is undefined / NaN, initialize as 0
- if counter is a number, add 1
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2cb53325-7d4e-47ce-9a45-f3351e53b41b%40googlegroups.com.
It is a little harder to understand but so much more elegant than my bulky workaround...
I will replace it as soon as possible.
<<calc !!order +2>>\define op() +$(num)$
<$vars num={{!!that-field}}>
<$macrocall $name=calc value="!!order" operation=<<op>>/>
</$vars><<calc !!order + by:!!that-field>><<calc 0=>!!order + by:1=>!!that-field>>