Mohammad, I would have thought all you need is in the order operators especially after <https://tiddlywiki.com/?home#after%20Operator> find which input title follows a specified one before <https://tiddlywiki.com/?home#before%20Operator> find which input title precedes a specified one
https://tiddlywiki.com/?home#Filter%20Operators I have not used these extensively yet but I believe they hold the key to problems like your own, keep in mind you can use these to establish one set, and subtract that from another set. These should provide all the elements for lists, queues head and tail operations and alot more. For example using first then storing rest, then using first on the rest allows you to step through every member and allows you to see what is coming. You could count how many items remain in rest for a progress indicator and more.... Also The range operator documentation should also be extended to show how to provide values to the <begin>,<end>,<step> parameters from fields and variables. <$set name=number-or-members value={{{ [filter] +count[]] }}}> the range[1,number-or-members] Second section in table is Order Operators, note that N is a number you can provide. after <https://tiddlywiki.com/?home#after%20Operator> find which input title follows a specified one before <https://tiddlywiki.com/?home#before%20Operator> find which input title precedes a specified one bf <https://tiddlywiki.com/?home#bf%20Operator> same as rest <https://tiddlywiki.com/?home#rest%20Operator> butfirst <https://tiddlywiki.com/?home#butfirst%20Operator> same as rest <https://tiddlywiki.com/?home#rest%20Operator> butlast <https://tiddlywiki.com/?home#butlast%20Operator> discard the last N input titles first <https://tiddlywiki.com/?home#first%20Operator> select the first N input titles last <https://tiddlywiki.com/?home#last%20Operator> select the last N input titles limit <https://tiddlywiki.com/?home#limit%20Operator> select the first or last N input titles ✓ ! next <https://tiddlywiki.com/?home#next%20Operator> find which titles in a list field follow the input ones nsort <https://tiddlywiki.com/?home#nsort%20Operator> sort the input by number field ! nsortcs <https://tiddlywiki.com/?home#nsortcs%20Operator> sort the input titles by number field, treating upper and lower case as different ! nth <https://tiddlywiki.com/?home#nth%20Operator> select the Nth input title order <https://tiddlywiki.com/?home#order%20Operator> selectively reverse the input list ✓ previous <https://tiddlywiki.com/?home#previous%20Operator> find which titles in a list field precede the input ones rest <https://tiddlywiki.com/?home#rest%20Operator> discard the first N input titles reverse <https://tiddlywiki.com/?home#reverse%20Operator> reverse the order of the input titles sort <https://tiddlywiki.com/?home#sort%20Operator> sort the input by text field ✓ ! sortan <https://tiddlywiki.com/?home#sortan%20Operator> sort the input by text field considering them as alphanumerics ✓ ! sortcs <https://tiddlywiki.com/?home#sortcs%20Operator> sort the input by text field, treating upper and lower case as different Regards Tony On Friday, August 2, 2019 at 10:29:10 PM UTC+10, Mohammad wrote: > > I have a list of tiddlers, I iterate over the list and I want to know if > an item is before or after the selected item! > > How to do 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a2f3c089-a08d-40ca-8d21-4d45b2d88515%40googlegroups.com.

