Anyone know of a much more effcient way to script a "Login and Password" in Flash?

I've got the:

on (release) {
if (pw == "" && un == "") {
} else {

I believe that was the code I used, but does anyone know of a neater not so sloppy way? That seems a little sloppy, extra code to follow out the command.