Hey, Diego — Noticed the COUNT error last night and fixed it in repo. Good catch on the IF error. I've also noticed that IFERROR won't behave correctly and I'll be looking into fixing that at some point.
For the impatient, I'm attaching patch files that can be imported into a wiki that already has the plugin. On Tuesday, 19 December 2017 10:24:01 UTC-6, Diego Mesa wrote: > > Hey Evan, > > In your demo, when I try: > > - count([tag[Expenses]]) > - `ComputeError: ReferenceError: V_Num is not defined operand: > [Operand function-call]` > - [tag[Expenses]count[]] > - [3.00] > - This is normal > - IF(([tag[Expenses]count[]]=*3*),"yes","no") > - `ValueError: TypeError: value.asString is not a function value: no` > - Where *3* can be either of the below without changing the > returned error > - 3.00 > - [3.00] > - "[3.00]" > - "3" > > Thank you very much for your hard work on this plugin. Mat is right - you > brought the chairs to the dinner party! > > Diego > > > > On Monday, December 18, 2017 at 10:25:51 PM UTC-6, Evan Balster wrote: >> >> Time will tell. It's my experience that hasty decisions about syntax can >> make language design tougher later on, so I'm not inclined to jump the gun >> on brevity options. One of the tough things about filters, in particular, >> is that the multi-run syntax should be supported in the future. That has >> some weird implications. >> >> It wouldn't be unreasonable to have an arraylinks function, though. >> >> On Monday, 18 December 2017 22:19:46 UTC-6, Mat wrote: >>> >>> (= arraystring([tag[Expenses]], "[[", "]] [[", "]]") >>>> >>> >>> A bit cumbersome. >>> Maybe (= array*links*([tag[Expenses]]) =) >>> >>> >>> ...and, btw, given how filters are delimited with outer square brackets, >>> just maybe parentheses could be omitted for filters? >>> >>> (= arraylinks*[*tag[Expenses]*]* =) >>> >>> (= sum*[*tag[Expenses]get[value]*]* =) >>> >>> <:-) >>> >> -- 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/b0cb34ff-8a09-4caa-9207-093405f674b3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
$__plugins_ebalster_formula_functions_logic.js.json
Description: application/json
$__plugins_ebalster_formula_functions_math.js.json
Description: application/json

