I think if it uses allbefore:include then there is no need for NOMATCH! like below
<$list filter="NOMATCH 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/4e2d2ef8-4924-4b0d-ae2a-c8cd5fed9321%40googlegroups.com.

