Hide HTML card in blog post based on if user is logged in

I am embedding some html into my blog post.
I only want to show it if the user is not logged in.
How can I wrap this html area in if statements to check if the user is logged in or not.

{{#if access}}
    <p>Thanks for being a member...</p>
  {{else}}
    <p>You need to become a member in order to read this post... </p>
  {{/if}}

or

{{#if @member}}
  <p>Thanks for becoming a member ๐ŸŽ‰</p>
{{else}}
  <p>You should totally sign up... ๐Ÿ–‹</p>
{{/if}}

How can I put this in a html card?

@sendgrid did you ever get this figured out? Iโ€™d love to know how if so!

@justinv Use the concept mentioned at the beginning of this comment: