Hello Jeremy! The range operator seems have issues. I reproduced the bugs in attached tid file which can be tested on https://tiddlywiki.com/prerelease/ It works wrongly for negative steps and when begin is smaller than stop.
The snapshot has given below! Example 1 Works as expected. The <step> is missing, so it is 1, the <begin> is missing, so it is 0 copy to clipboard <$list filter="[range[10]]" variable="x"> <<x>> </$list> That renders as: 0 1 2 3 4 5 6 7 8 9 10 Example 2 Works as expected. Only the <step> is missing, so it is 1 copy to clipboard <$list filter="[range[3,10]]" variable="x"> <<x>> </$list> That renders as: 3 4 5 6 7 8 9 10 Example 3 Works as expected. The <step> is negative, <begin> is bigger than <end> copy to clipboard <$list filter="[range[10,0,-2]]" variable="x"> <<x>> </$list> That renders as: 10 8 6 4 2 0 Example 4 Seems to work as expected. The <step> is not given! <begin> is bigger than <end>, so it seems the -1 is assumed as <step>. Other language like python return empty list!! copy to clipboard <$list filter="[range[10,0]]" variable="x"> <<x>> </$list> That renders as: 10 9 8 7 6 5 4 3 2 1 0 Example 5 Seems to work Wrongly. The <step> is negiven! <begin> is smaller than <end>, so it should return empty list. copy to clipboard <$list filter="[range[1,10,-2]]" variable="x"> <<x>> </$list> That renders as: 1 3 5 7 9 Example 6 Seems to work Wrongly. The <step> is positive! <begin> is bigger than <end>, so it should return empty list. copy to clipboard <$list filter="[range[10,0,2]]" variable="x"> <<x>> </$list> That renders as: 10 8 6 4 2 0 -- 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/435fb1ff-9cd2-4aa4-8853-df97cd01e6c7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Test Range Operator.tid
Description: Binary data

