title: Blogger B:if for comments and b:loop tag for displaying commnets
body: <p>i have a blog on blogger: Mobtakr
  I wanted to display comments in posts using the blogger tag b:loop instead of this data code</p>
  
  <pre><code>  &lt;data:post.commentHtml/&gt;
  </code></pre>
  
  <p>So i used this code cause i wanted to implement schema markup for comments : 
  ​</p>
  
  <pre><code>  &lt;ol id="top-ra" &gt;
  &lt;b:loop values='data:post.comments' var='comment'&gt;
    &lt;li itemscope='itemscope' itemtype='https://schema.org/Comment'  class="comment" expr:id='data:comment.anchorName' &gt;
  &lt;div class="comment-block"&gt;
  &lt;div class="comment-header"&gt;
  &lt;b:if cond='data:comment.authorUrl'&gt;
  &lt;a expr:href='data:comment.authorUrl' itemprop='author' itemscope='itemscope' itemtype='https://schema.org/Person' rel='nofollow'&gt;
  &lt;span itemprop="name"&gt;
  &lt;data:comment.author/&gt;
    &lt;/span&gt;
  &lt;/a&gt;
  &lt;b:else/&gt;
  &lt;a expr:href='data:comment.authorUrl' itemprop='author' itemscope='itemscope' itemtype='https://schema.org/Person' rel='nofollow'&gt;
  &lt;data:comment.author/&gt;&lt;/a&gt;
  &lt;/b:if&gt;
  &lt;time expr:datetime="data:comment.timestamp" itemprop="dateCreated"  class="datetime secondary-text"&gt;
  &lt;data:comment.timestamp/&gt;
    &lt;/time&gt;
    &lt;/div&gt;
  &lt;p  class='comment-body' expr:id='data:widget.instanceId + data:comment.cmtBodyIdPostfix' itemprop='text'&gt;
  &lt;data:comment.body/&gt;
  &lt;/p&gt;
      &lt;/div&gt; 
  &lt;div class="comment-replies" &gt; 
  &lt;ol &gt;
  
  &lt;b:loop values='data:post.comments-replies' var='comment'&gt;
  /*
  So i want to loop the replies here and add some custom styles to them */ 
  &lt;/b:loop&gt; 
  &lt;/ol&gt;
      &lt;/div&gt; 
  &lt;/li&gt;
  &lt;/b:loop&gt;
  &lt;/ol&gt;
  </code></pre>
  
  <p>the problem is i cant find a condition for comment replies or if the comment has replies then loop its replies with some style to make the replies different from the comment itself and margin the replies. </p>
  
  <p>So, can anyone help me  ?</p>
  
  <p>Is there a b:if tag with the condition cond="hasReplies" ?</p>