Making a custom page type field only visible for certain templates

I have a custom page type where I want to add a new field which is only visible for a certain template. Is this possible? I thought it might be achievable using the 'Field advanced Settings > Visibility condition' but I'm not having any luck. It could just be my macro is not correct:

You'll have to see how you can get the NodeAliasPath, it may exist in the DocumentContext while the PageTemplate may not, otherwise you may need to create a custom macro that takes some Page identification (DocumentID perhaps) which is available and gets the value for you.