This <$list filter="[range[10,1,-0.1]]"/>
works. This also counts down: <$list filter="[range[10,1,0.1]]"/> So the code appears to figure out which way you want to count based on whether start is greater than end, and uses the absolute value of the step. -- Mark On Sunday, December 2, 2018 at 10:35:32 AM UTC-8, Mohammad wrote: > > Thank you Simon! > But you can not have negative step from 1 to 10 and again you get 1,2,3.... > I read the Evans formula and range code and it seems TW5.1.18 uses the > same code from Evans! > > > Evans code can be found here: > > http://evanbalster.com/tiddlywiki/formulas.html#%24%3A%2Fplugins%2Febalster%2Fformula%2Ffilters%2Frange.js > > Look how the increment is calculated! I think it can be modified to handle > negative steps correctly! > > Mohammad > > > > > > > On Sunday, December 2, 2018 at 9:47:04 PM UTC+3:30, BurningTreeC wrote: >> >> @Mohammad, here are the docs: >> https://tiddlywiki.com/prerelease/#range%20Operator >> >> On Sunday, December 2, 2018 at 6:32:49 PM UTC+1, Mohammad wrote: >>> >>> Many thanks for all your efforts Jeremy! >>> >>> One question: >>> >>> {{{ [range[1,10,-2]] }}} >>> >>> >>> returns 1357 while it is expected to return empty list! Note to the >>> negative step! >>> >>> Is this intentionally set to have such output? >>> >>> Also >>> {{{ [range[10,4,2]] }}} >>> >>> returns >>> 10864 >>> >>> I appreciate to clarify this! >>> >>> Mohammad >>> >>> -- 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/f5ac48a3-15b2-42e2-9dda-2aa3b998b940%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

