Return the index of the last entry in the pagelist that the condition is satisfied for
I have a PageList that contains several pages. I need to identify the index in the last entry in the pagelist that the given conditions are satisfied. There are two out of the box functions that return the first entry for the given condition (eg. IndexInPageList, IndexInPageList) but the requirement is to return the last index in the pagelist for the given conditions satisfied.