@sadsack,

not dumb.
Perhaps, get confuse and miss a matching bracket, or semicolon. I know I do a lot.

but all of these are fine and legal syntax:

Code:
 if(campla==1)
{  
       canera_state();
     
}  
else
{

     if(campla == 0) 
      cam_walking();
   
   
   
}


 if(campla==1)
 {  canera_state();}  
 else
 {  if(campla == 0) 
     cam_walking();  }

 if(campla==1) {  canera_state();}  
 else {  if(campla == 0) 
            cam_walking();  }


as long as the keywords are there and the matching brackets. And with the semicolons too.
Which form and style is better and more readable to each coder. And also if you program on a team or at a company and which is the standard or acceptable forms for the team, supervisor, boss, contractor involved.