I'm having a pagelist like sample.pxResults, In this each page I have a property name .Type So i need to check all the pages for that .Type property and check whether if any one of them has value "true". If atleast one page has value true then no need to show error.
I tried by using .Type=="false" || .Type=="" then display message. but getting error message even if it has value any 1 of them as true.
Please help me with this.
Thank you in advance.
***Edited by Moderator Marissa to change type from General to Product, update Product details and Capability tags****
@NaveenV1324 Create a When rule in the data class of the page list sample.pxResults. In the when condition select expression evaluates to true and add the following expression @String.equalsIgnoreCase(.Type,true). So that eventhough Type contains true or True it works. Save the condition. Now specify the condition in the following function
@IsInPageListWhen("Create_When_Condition",Sample.pxResults). This will return true if any one of the page list contains the value or if the when condition is true else it will return false. When its false Error message can be displayed.