Hey guys,
I have a parent resource 3171 that has three child resources. I am trying to create a comma-separated list of page titles however why my logic below I am getting the following:
pagetitle1, pagetitle2, pagetitle3,
[[!getResources?
&parents=`3171`
&showHidden=`1`
&showUnpublished=`1`
&tpl=`@INLINE [[!+pagetitle]][[!+idx:lt=`[[!+total]]`:then=`, `:else=``]]`
]]
With my logic above I've outputted the idx and the total and when idx = 3 and total = 3 that conditional is still evaluating true. I've been searching around for a potential answer but have failed so far. Obviously I'm missing something but I'm not sure what. Any ideas?