Filtering subpages with two tags fields

Hi

I have a projects page with project subpages. the individual project pages have two tags fields ‘sectors’ and ‘services’. i can use the filterBy method to filter through one of the tags but I need to be able to filter through both sectors and services tags.

Is there a way using the filterBy method to get this done or is best to run it through the search method?

thanks

You can use when, see examples here: $pages->when() | Kirby CMS