BubikolRamios
01-02-2008, 09:11 AM
Realy annoyed by this code but cant do it any other way.
Was trying using ?:; but no success.
So: any suggestion how to do the same with much lesss code ?
Thanks.
result = checkNick(nick);
if (result !='')
{
alert(result);
return;
}
result = checkMail(email);
if (result !='')
{
alert(result);
return;
}
result = checkPwd(pwd1,pwd2);
if (result !='')
{
alert(result);
return;
}
Was trying using ?:; but no success.
So: any suggestion how to do the same with much lesss code ?
Thanks.
result = checkNick(nick);
if (result !='')
{
alert(result);
return;
}
result = checkMail(email);
if (result !='')
{
alert(result);
return;
}
result = checkPwd(pwd1,pwd2);
if (result !='')
{
alert(result);
return;
}