[tw5] Re: How to make "complex" macro calculations?

2021-03-19 Thread Ste
Evans formula plug in makes it a little less painful. On Thursday, 11 March 2021 at 22:53:06 UTC dop...@gmail.com wrote: > Believe me, I've been looking at them for days, and only now it struck me > how to use them. I'm still trying to understand if there's a formula to > have only 2

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
Believe me, I've been looking at them for days, and only now it struck me how to use them. I'm still trying to understand if there's a formula to have only 2 action-setfield performing the whole operation (one for the first field and one for the second, that needs the first to compute). Thanks

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
I just transposed your calculations exactly as they were, as I wasn't sure of the logic or which of the interim values you might need. See https://tiddlywiki.com/#Filter%20Expression for an explanation on = and + prefixes for filter runs. On Thursday, March 11, 2021 at 7:50:58 PM UTC+1

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
While looking for solutions to my other problem (where you replied!), I found another solution to this by using =[field] =[field] +[sum[]] and +[product[]]. I didn't know how = and + worked, and I don't know if this is simpler - it has way less stratification of vars - but it works nonetheless.

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
The key is that you cannot access the value of a variable, within the same vars widget that sets it. So this: <$vars a=2 b=3 c=a+b> Should be: <$vars a=2 b=3> <$vars c=a+b> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
This is an excellent plugin and I will use it a lot, thank you! However, I don't understand how can I store a result calculated with this plugin inside a field. On Thursday, 11 March 2021 at 13:39:00 UTC+1 PMario wrote: > Hi, > Have a closer look at: https://chronicles.wiki/TiddlyWikiFormula/

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Alessandro Gianni
THIS. I don't know how to thank you. I actually tried something similar, but I probably try to calculate vars all in one line (like: <$vars a=2 b=3 c=a+b>) it obviously didn't work and I thought it just couldn't work with vars. Thanks again! On Thursday, 11 March 2021 at 14:09:58 UTC+1

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
Something like this: <$vars lev1={{!!levello1}} lev2={{!!levello2}} hd1={{{ [title{!!class}get[hd]] }}} hd2={{{ [title{!!class}get[hd]] }}} conmod={{{ [get[modcon]] }}}> <$vars hps={{{ [multiply[2]subtract[2]] }}} hp1={{{ [multiply] }}} hp2={{{ [multiply] }}} lev={{{ [add] }}}> <$vars

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread PMario
Hi, Have a closer look at: https://chronicles.wiki/TiddlyWikiFormula/ -m -- 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+unsubscr...@googlegroups.com.

[tw5] Re: How to make "complex" macro calculations?

2021-03-11 Thread Saq Imtiaz
In the same block of action strings, you cannot set tiddler/field values and retrieve the updated values. Try saving the interim values as variables instead of in temp tiddlers. On Thursday, March 11, 2021 at 1:03:35 PM UTC+1 dop...@gmail.com wrote: > Hi all. I'm in need of a macro (or