Community

Problem with placeholder modifier

Hi There …

    [[+total]]
    [[+total:gte=`5`:then=`There are 5 books or more than 5 books`:else=`There are less than 5 books`]] 

The first one is showing me 50 then also the second one shows “There are less than 5 books” dont get it why … whereas it should show the first message … is there any problem in syntax ? As I have just copied and pasted the second section from MODX docs.

Thanks,
Ronak

maybe total isn’t set, at the time when the output-filter is evaluated.
Is the snippet - call, which sets the total - placeholder called cached or uncached?