TYPO3 Pidinrootline fluid style
If you want to check if a pid is in the current rootline you can use these ViewHelpers of vhs:
<v:condition.iterator.contains needle="<the page id>" haystack="{v:page.rootline() -> v:iterator.extract(key: 'uid')}"> is in </v:condition.iterator.contains>