title: rating with if else in woocommerce
body: <p>I want to accomplish if else statement on this</p>
  
  <pre><code>if ( $rating_count &gt;= 0 ) : ?&gt;
      &lt;?php echo wc_get_rating_html($average, $rating_count); ?&gt;
      &lt;?php if ( comments_open() ): ?&gt;
      &lt;a href="&lt;?php echo get_permalink() ?&gt;#reviews" class="woocommerce-review-link" rel="nofollow"&gt;(&lt;?php printf( _n( '%s',$review_count,'woocommerce' ), '&lt;span class="count"&gt;' . esc_html( $review_count ) . '&lt;/span&gt;' ); ?&gt;)Reviews&lt;/a&gt;
      &lt;?php endif ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>i.e to show counts of review or echo a string <br>
  please help.</p>