Need a little help with helpers - access to comments to paid members and free

We want to restrict commenting to paid members only but also allow commenting to free members on articles that have the tag #freetocomment

Will the following work, I haven’t tried it on the website because it’s live (Ghost Pro) and currently don’t have access to a local dev version.

{{#if @member.paid}}

Display Comments

{{/if}}

{{#if @member}}

{{#has tag="#freetocomment"}}
 Display comments if the article has the free tag 
{{/has}}

{{/if}}

From what I understand, the above is saying, if a member has a paid membership then display comments. Then if the member has a free membership and the article has the #freetocomment tag display comments.

Just don’t want two comment forms being displayed so looking for a way to use on a single condition rather than having two - but no sure if that matters in this case.

OK got there in the end… Quite a few conditions but if anyone can come up with a shorter, cleaner solution please do let me know.

{{#if @member.paid}}
DISPLAY COMMENTS
{else if @member}}
{{#has tag="#freetocomment"}}
DISPLAY COMMENTS
{{/has}}
{{^has tag="#freetocomment"}}
UPGRADE TO COMMENT ON THIS ARTICLE
{{/has}}
{{else}}
{{#has tag="#freetocomment"}}
Register for free to join the conversation.
{{/has}}
{{^has tag="#freetocomment"}}
Comments on this article are only available to premium subscribers.
{{/has}}
{{/if}}