[[If? &subject=`[[getParentId]]` &operator=`EQ` &operand=`[[+id]]` &then=`Its active` &else=`Its not active` ]]
[[[[getParentId]]:is=[[+id]]:then=`its active`:else=`its not active`]]
This question has been answered by treigh. See the first response.
[[!If? &subject=`[[!getParentId]]` &operator=`eq` &operand=`[[+id]]` &then=`It's active` &else=`It's not active` ]]
[[getParentId:is=`[[+id]]`:then=`its active`:else=`its not active`]] // Call it uncached if need be
[[[[getParenId:is=`[[+id]]`:then=`myElement?...`:else=`myOtherElement? ...`]]]]
Can you explain exactly what you're trying to do?I'm actually want to match the resource id, if matched , then will output a 'active' class and applied on the li tag.
It looks like you're comparing the ID of the resource being retrieved with the ID of its parent. Those will never match, since a resource is never going to be its own parent. Maybe I'm missing something.