Hi Jan,
> It is a little harder to understand but so much more elegant than my bulky
> workaround...
> I will replace it as soon as possible.
>
The "by" parameter made it so much easier
to simply define a calculation with fields.
Take this example:
<<calc !!order +2>>
How would you make it so that the 2
can be read from some text-reference?
See, you would need:
- a helper macro
- a helper variable
- and then use the macrocall-widget to use calc
\define op() +$(num)$
<$vars num={{!!that-field}}>
<$macrocall $name=calc value="!!order" operation=<<op>>/>
</$vars>
Oy, bummer, now you can't use calc
anymore as an attribute to a widget!
Plus, isn't that way too difficult?
This, on the other hand, is much simpler:
<<calc !!order + by:!!that-field>>
And now you can add initialization on top:
<<calc 0=>!!order + by:1=>!!that-field>>
Not all that difficult, after 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 [email protected].
To post to this group, send email to [email protected].
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/9edd453c-6a04-459b-af8c-9da62d538cb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.