else needed?

From: Date: Sat, 19 Jul 2003 17:01:14 +0000
Subject: else needed?
Groups: php.general 
Request: Send a blank email to php-general+get-155900@lists.php.net to get a copy of this message
On if statements, I periodically don't want anything to happen if the requisite is not met. In most cases just writing the statement in the format if (this) { do that; } and nothing more will work. However, I periodically get weird results with this and found the only fix was to do a... if (this) {do that;}else{"echo "";} I try using continue in the else but get errors about using continue on level 1 or something to that affect. I'm assuming that continue is only used in loops. It's amazing how far I can code things without these little "foundation level" bits of information ;-) Larry S. Brown Dimension Networks, Inc. (727) 723-8388

« previous php.general (#155900) next »