title: Wordpress post Loop not working as expected
body: <p>I'm using a theme that uses the blog page to display all of its content on the blog page rather than an excerpt and then when i click into the post i want to show the whole content.</p>
  
  <p>I'm using the following code:</p>
  
  <pre><code>$postId = get_the_ID();
          $ex = the_excerpt();
  
          if($postId == 19){
  
              echo $ex;
  
  
          }
  
          else{
  
              echo $content;
  
          }
  </code></pre>
  
  <p>The blog page is located at post =19 </p>
  
  <p>I would expect only the excerpt to show on the blog page and the content to show on the post page.  However both show. Also it doesnt matter if i change the number 19 in my if statement as the same happens. Can anyone see where i am going wrong?</p>
  
  <p>edit made changes, screen shots:</p>
  
  <p><img src="https://i.stack.imgur.com/9G1Ll.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/1Xs0t.png" alt="enter image description here"></p>