Re: else needed?
| From: | Curt Zirzow | Date: | Sat, 19 Jul 2003 17:31:27 +0000 |
| Subject: | Re: else needed? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155901@lists.php.net to get a copy of this message | ||
Larry Brown <larry.brown@dimensionnetworks.com> wrote:
> 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 "";}
Never have i had a problem with the
if (condition) { code; }
It has to be some sort of error on your part.
>
> 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.
correct
Curt
--