c - Can't compile code. Keep saying Error on bracket -


bool increase(void) {     num = num + 1;     num2 = 123;     num1 = 100;      if(num2 > 1000)     {         return(1);  // endcheck     }     else(num2 > num1)     {         resetincrement();            return(0);  // continue check batch     } } 

i keep getting error message on else bracket. says no semicolon found sem colons there. not sure why. maybe can see mistake here?

you cannot provide second conditional else itself, use:

else if (num2 > num1) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -