title: How does this if, while works?
body: <p>I found this line on a Wordpress template and I'm not sure about how it works. Anyone with any ideas?</p>
  
  <pre><code>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
  </code></pre>
  
  <p>Note: I'm not wondering about the methods. My question is about the syntax.</p>
  
  <pre><code>&lt;?php if(conditional) : while(conditional) : method; ?&gt;
  </code></pre>