title: Can you use #defined values in if statements (In C programs)?
body: <p>I am new at C programming. I thought when you type something like <code>#define Const 5000</code> that the compiler just replaces every instance of Const with 5000 at compile time. Is that wrong?
  I try doing this in my code and I get a syntax error. Why can't i do this?</p>
  
  <pre><code>#define STEPS_PER_REV 12345
  
  ... in some function
  if(CurrentPosition &gt;= STEPS_PER_REV)
  {
      // do some stuff here
  }
  </code></pre>
  
  <p>The compiler complains about the if statement with a syntax error that gives me no details.</p>