Ma la cosa è così:

codice:
if (ciao == 1) {
   if (...)

   else if (...)

   else if(...)

}
else if (ciao == 0){ ...}
oppure così:

codice:
if (ciao == 1) {
   if (...)

   else if (...)

   else if(...)

   else if (ciao == 0){ ...}
}
e cmq spiega meglio ciò che vuoi xchè nn si è capito