title: How to check if a post id is different in WordPress
body: <p>In order to check if a post id exist, i do this :</p>
  
  <pre><code>if ('publish' == get_post_status ($post_id)) {
      // do something
  }
  </code></pre>
  
  <p>But how can i check if the id is different like in php :</p>
  
  <pre><code>if ($id != $var) {
      //do stuff
  }
  </code></pre>
  
  <p>What i am doing :</p>
  
  <pre><code>$post_id = get_the_ID();
  if ($post_id != 835) {
      //do stuff
  }
  </code></pre>
  
  <p>Is it correct ?</p>