разберись с булевой алгеброй

Код:
_root.my_btn.onRelease = function() {
if (!_root.pass.text.length && !_root.id.text.length) {
_root.error.htmlText = "<b>enter id & pass</b>";
} else if (!_root.pass.text.length) {
_root.error.htmlText = "<b>enter pass</b>";
} else if (!_root.id.text.length) {
_root.error.htmlText = "<b>enter id</b>";
} else if (_root.pass.text.length && _root.id.text.length) {
_root.error.htmlText = "<b>...sending...</b>";
}
}