Unexpected behavior for the allbefore:include operator

38 views
Skip to first unread message

c pa

unread,
Jun 1, 2016, 12:40:06 PM6/1/16
to TiddlyWiki
Good day,

This behavior requires me to add a +[first[]] block and then a +[rest[]] block all over the place

Code being executed

    <$list filter="one two three four" variable="component">
        <$count filter="one two three +[allbefore:include<component>]" />
    </$list>

Expected results

    1 2 3 4

Actual results

    0 2 3 4

Discussion: I'm using $count allbefore in order to generate index number within lists (Very useful as discussed in other posts)

Mat

unread,
Jun 2, 2016, 12:57:08 PM6/2/16
to TiddlyWiki
No solution but for clarification, the case can be minimized to:

<$count filter="foo +[allbefore:include[foo]]"/>

Result:0
Expected:1


<:-)
Reply all
Reply to author
Forward
0 new messages