in reply to Re: Re: i cant see whats wrong with this:
in thread i cant see whats wrong with this:
Directly from perlman:perlsyntax manual.
The following compound statements may be used to control flow: if (EXPR) BLOCK if (EXPR) BLOCK else BLOCK if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK LABEL while (EXPR) BLOCK LABEL while (EXPR) BLOCK continue BLOCK LABEL for (EXPR; EXPR; EXPR) BLOCK LABEL foreach VAR (LIST) BLOCK LABEL foreach VAR (LIST) BLOCK continue BLOCK LABEL BLOCK continue BLOCK
Do you see a syntax diagram for
if(cond){...} else if(cond) {...} else {...} there anywhere?
Sorry! I don't know what language you were using, but it wasn't Perl!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: i cant see whats wrong with this:
by Anonymous Monk on Aug 30, 2002 at 09:27 UTC | |
by BrowserUk (Patriarch) on Aug 30, 2002 at 10:42 UTC |