title: expression cannot be used as a function - IF STATEMENT
body: <p>i am getting "expression cannot be used as a function," error when compliling this function.  All else works when this is commented out.</p>
  
  <pre><code>boolean feedActive = 0;
  DS3231_Simple Clock;
  DateTime now;
  byte lights [5] {0,0,0,0,0};  //active, ontimeH, ontimeM, offtimeH, offtimeM
  
  void runPowerSched(){
  
    if (feedActive == false){
  
       for (int x=0; x&lt;2; x++) {
  
       if ((now.Hour() == lights[1+(x*2)]) &amp;&amp; (now.Minute() == lights[2+(x*2)]) &amp;&amp; (lights[0] == 1))
       {light_toggle(abs(x-1));}
  }
  </code></pre>
  
  <p>Not sure on exactly what language this is, seems like  mixture in the other parts of the code, but all compiles within the arduino software.
  Any help is greatly appreciated.  thank you!</p>