Adding a Preferences Window to Your Application
Subject:   Avoid insertion of empty record
Date:   2003-08-30 15:50:51
From:   anonymous2
Response to: Avoid insertion of empty record

Cute, but too lugubrious. Use length and the logical or || operator. Will cost less code and will execute much faster. You've got && throughout your snippet - meaning the machine HAS to go through and evaluate each one.

Besides, your logic is upside down. You are checking for what you DON'T want to find, instead of what you DO want to find.

Make your logid aright. THIMK a bit. ;P