I’m having trouble with the ’If’ Snippet, I can’t get it to output my chunks. The chunks work and so does the IF call, but when I use them together, I get nothing (No output for &then, or &else)
My call is:
[[!If?
&subject=`[[!sortbyGET]]`
&operator=`NEQ`
&operand=`starrating`
&then=`[[!$getResourcesByCategory]]`
&else=`[[!$getResourcesByRating]]`
]]
If I use the call below, it outputs the text I expect and the conditional works fine.
[[!If?
&subject=`[[!sortbyGET]]`
&operator=`NEQ`
&operand=`starrating`
&then=`Sort by menuindex or publishedon`
&else=`sort by star rating`
]]
Also, if I call either of my chunks they output the text I need too.
[[!$getResourcesByCategory]]
[[!$getResourcesByRating]]
is there something else I need to get my chunks to be called from the If conditional?