The veggie example worked fine for me after I straightened out the
line-wrapping. If you look at the text of your tiddler in an external
editor, you want everything inside of each quote section within the
wikiCalc macro to be on one line:

  <<wikiCalc "stuff all on one line" parameter1  >>

Hmm, apparently I need to watch my diet ...

HTH
Mark

On Dec 9, 4:15 pm, Måns <[email protected]> wrote:
> Hi TwWizards (and Eric)
>
> I read this old 
> post:http://groups.google.dk/group/tiddlywiki/browse_thread/thread/4f1a8c9...
>
> I tried it out:
> <<wikiCalc "%0/%1" [[MyFood::Vegetables]] [[MyFood::Hamburgers]]>>
> Your diet is <<wikiCalc "(%0/%1)<1?'unhealthy... eat more
> vegetables':'healthy... keep it
> up'"[[MyFood::Vegetables]] [[MyFood::Hamburgers]]>>
> |Vegetables|5|
> |Hamburgers|6|
>
> It doesn't seem to work..
> I wonder if the extra two lines of code has been removed again?:
>
> >I've just added a minor tweak (only two lines) to the existing plugin
> >code, it can now assemble a javascript expression from slice values
> >(automatically retrieved by the core's macro handler) and then also
> >'eval' that expression to compute a new value before it is output as
> >wiki-formatted content.
>
> Or I have made some kind of misspelling in the syntax ??
>
> YS Måns Mårtensson

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.


Reply via email to