Count

fmt=count does count non existing pages ; how to exclude non existing pages ?

(:pagelist trail=Test.TrailIndex fmt=count:)

8

(:pagelist trail=Test.TrailIndex if="exists {=$FullName}" fmt=count:)

7

The trail index is on Test.TrailIndex.

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.20 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.20 MakePageList pre
 5: 00.21 00.20 PageListSources begin
 6: 00.21 00.21 PageListSources end count=8
 7: 00.21 00.21 PageListSort pre ret=0 order=
 8: 00.21 00.21 MakePageList items count=8, filters=
 9: 00.21 00.21 MakePageList post count=8, readc=0
10: 00.21 00.21 MakePageList end
11: 00.21 00.21 MarkupToHTML end
12: 00.21 00.21 MarkupToHTML begin
13: 00.21 00.21 MakePageList pre
14: 00.21 00.21 PageListSources begin
15: 00.21 00.21 PageListSources end count=8
16: 00.21 00.21 PageListSort pre ret=0 order=
17: 00.21 00.21 MakePageList items count=8, filters=PageListIf
18: 00.21 00.21 PageStore::ls begin wiki.d/{$FullName}
19: 00.22 00.22 PageStore::ls merge wiki.d/{$FullName}
20: 00.22 00.22 PageStore::ls end wiki.d/{$FullName}
21: 00.23 00.22 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
22: 00.23 00.22 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
23: 00.23 00.22 PageStore::ls end $FarmD/wikilib.d/{$FullName}
24: 00.24 00.23 MakePageList post count=7, readc=0
25: 00.24 00.23 MakePageList end
26: 00.24 00.23 MarkupToHTML end
27: 00.25 00.24 MarkupToHTML end
28: 00.25 00.24 MarkupToHTML begin
29: 00.26 00.25 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
30: 00.26 00.25 ReadApprovedUrls SiteAdmin.ApprovedUrls end
31: 00.27 00.26 MarkupToHTML end
32: 00.27 00.26 MarkupToHTML begin
33: 00.27 00.26 MarkupToHTML end
34: 00.27 00.26 now
Peak memory: 5,493,968 bytes