Groups
Groups
Sign in
Groups
Groups
TiddlyWiki
Conversations
Labels
About
Send feedback
Help
Unexpected behavior for the allbefore:include operator
38 views
Skip to first unread message
c pa
unread,
Jun 1, 2016, 12:40:06 PM
6/1/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
6/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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