Issue with expecting }, found 'else'

the if( <boolean> ) <function> ;
it is the same as:

if( <boolean> ) {
   <function>;
}

and is used for this

void draw() {
  if(mouseX > width/2) background(255); else background(0);
}

however there can only be one function used in the if(); statement