Pega Marketing Expression Builder | Check for value in result pages
Within a Pega Marketing Strategy, say StrategyX, we have a Sub Strategy which can give back multiple pages as a result (as visible in the Test run panel).
Each page contains multiple properties, one of which being a property called ".pyBehaviour". Within our StrategyX we want to check if a certain value, say "valueY", is present in the property .pyBehaviour in one of the pages of the Sub Strategy results and give back 1 if true and 0 if false. Also we don't want to directly input the Sub Strategy into the component, in this example the Set Property component (see screenshot for setup).
Currently we have built the following:
@if(@IsInPageList("valueY","pyBehaviour",Sub_Strategy.pxResults)==true,1,0)
Currently this always returns 0. Presumption is that we are not using the right parameters in the IsInPageList function. Or we might have to use different function.
In short: how can we check if a certain value exists in a property in one of the result pages of a sub strategy?