title: Strange if statement syntax with no body in a for loop
body: <p>I am working on a thirdparty API that has the following code somewhere in it:</p>
  
  <pre><code>// Toggle LEDs 4 time to show we are online
  for(int i = 0; i &lt; 4; i++) {
      camManager.setCameraGpioOutput(cameraRight, IO_GPIO_1, 1);
      QThread::msleep(250);
      camManager.setCameraGpioOutput(cameraRight, IO_GPIO_1, 0);
      if(QThread::msleep(250); i &lt; 4);
  }
  </code></pre>
  
  <p>is that IF condition valid? I assume they wanted to omit the delay on the last loop but what sorcery is this?</p>