dove sbaglio?

codice:
on (release) {
	errore==0;
	if (username=="" || username==undefined){
	out="Inserisci l'username";
	errore==1;
	}
	if (nome=="" || nome==undefined){
	out="Inserisci il nome";
	errore==1;
	}
	if (cognome=="" || cognome==undefined){
	out="Inserisci il cognome";
	errore==1;
	}
	if (email=="" || email==undefined){
	out="Inserisci l'email";
	errore==1;
	}
	if (password==password2){
		errore==0;
		}
	else {
		out="Le due password devono coincidere";
		errore==1;
		}
	if (errore==0){
	out= out + "OK";
	}
	else {
		out= out + "no";
	}
}