In MODX 2.8.4, I’m using pdoResources to pass data and set my totalvar to start counting. It’s returning a 2 as expected, but when I use this:
[[+cardTotal:lt=3:then=There are less than 3 cards:else=There are 3 or more cards]]
or
[[+cardTotal:in=1,2:then=There are less than 3 cards:else=There are 3 or more cards]]
I keep getting the wrong output. I have no idea what’s going wrong here. I simply want to output something specific when the count is lower than a value.