Mohammad, Thanks, I note you example has a trailing space inside the filter.
All, I have submitted a variation as an example to the documentation on tiddlywiki.com A B C D E +[allbefore:include[C]count[]] Regards Tony On Tuesday, January 14, 2020 at 7:30:37 PM UTC+11, Mohammad wrote: > > I think if it uses allbefore:include then there is no need for NOMATCH! > like below > > <$list filter="A B C D E +[allbefore:include<target>count[]] " /> > > --Mohammad > > On Tuesday, January 14, 2020 at 4:23:54 AM UTC+3:30, Eric Shulman wrote: >> >> On Monday, January 13, 2020 at 3:30:36 PM UTC-8, TonyM wrote: >>> >>> Is anyone aware of an efficient way to determine the position of a given >>> tiddler name in a list ? >>> >> >> How about something like this: >> <$list filter="NOMATCH A B C D E +[allbefore<target>count[]] " /> >> >> >> Notes: >> * <target> is the title you are looking for >> * if target doesn't exist in the list, the result is "0" >> * NOMATCH is used as a "sentinel" value so that valid matches start with >> "1" >> >> Thus, if in the above example >> target="FOO" returns 0 >> and >> target="A" returns 1 >> target="B" returns 2 >> etc. >> >> let me know how it goes... >> >> enjoy, >> -e >> > -- 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/c00ee6a5-93b3-4e9f-a136-71d5abace866%40googlegroups.com.

