[tw5] Re: <$list> output as a single string?

2018-06-20 Thread hubertgk
Thank you all for the suggestions! Much appreciated. Best, Hubert On Tuesday, 19 June 2018 16:22:12 UTC+1, Stobot wrote: > > I agree - a sum[] filter operator would be hugely valuable! I like the > plugin but it's often overkill for simple needs. sum[] should be core in my > opinion. > --

[tw5] Re: <$list> output as a single string?

2018-06-19 Thread Stobot
I agree - a sum[] filter operator would be hugely valuable! I like the plugin but it's often overkill for simple needs. sum[] should be core in my opinion. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop

[tw5] Re: <$list> output as a single string?

2018-06-19 Thread 'Mark S.' via TiddlyWiki
The macros are in $:/plugins/mas/formula/functions/aggregation You're right -- a "sum" filter seems like a useful thing and wouldn't be too hard to write. I suppose someone has already done it ... -- Mark On Monday, June 18, 2018 at 9:35:06 PM UTC-7, TonyM wrote: > > Mark, > > I am keen to

[tw5] Re: <$list> output as a single string?

2018-06-18 Thread TonyM
Mark, I am keen to see these macros you refer to can you tell me the tiddler names in http://carbocommander.tiddlyspot.com/ ? Also, I would love to find a way to do sums without needing to bring in the formulas plugin as it is somewhat overkill. I may put a request in for a sum[] filter

[tw5] Re: <$list> output as a single string?

2018-06-18 Thread TonyM
\define count-items(filter) <$list filter="$filter$ +[count[]]" variable= result><> \define sum-field(fieldname,filter) <$set name=filter value="$filter$" emptyValue="[has:field[$fieldname$]]"> (= sum([has[$fieldname$]] +[get[$fieldname$]]) =) \end You provide the count items with a filter and

[tw5] Re: <$list> output as a single string?

2018-06-18 Thread TonyM
Post Script, I just started to investigate using Evans Formula plugin and it permits the provision of filters into the sum, so you do not need a list eg; (= sum([tag[Expenses]get[value]]) =) so perhaps this would work to return the number (= sum([[_data]getindex[$(matching_indexes)$]])+5

[tw5] Re: <$list> output as a single string?

2018-06-18 Thread TonyM
hubertgk, When you say "sum that with 5" I presumed you mean add 5 to the single number found for each item in your output list, because you are calling Test2 every items. I think if I understand correctly You need to divide the problem into two steps. One sum the value of each list item

[tw5] Re: <$list> output as a single string?

2018-06-18 Thread 'Mark S.' via TiddlyWiki
The SetWidget now has a filter option. I seem to recall that the output is as an array. Perhaps you could replace the <$list> with a <$set> ? For CarboCommander (http://carbocommander.tiddlyspot.com/) I added a couple macro's to Evan's kit to allow the aggregation of numbers into variables. It