count with predicate query not working
I am using Adobe Acrobat Sign for salesforce. I am trying to get below expression to work for template but it doesnt
{% conditional-section expr($count(`SBQQ__Quote__c`.`SBQQ__LineItems__r`[$contains(`SBQQ__ProductCode__c`, "Top Up")]) > 0 ) %}
/////////lorem ipsum dolor…//////
{% end-section %}
what I am trying to do here is check if a CPQ quote has top up lines, if yes display a section.
The above expression fails to get the count of top up lines. I have ensured SBQQ__ProductCode__c field is tagged in document tagging section.
Please let me know what I am doing wrong here or if this is a bug
Thanks