[chuck-users] 'if' statement parse error...?
Scott Wheeler
wheeler at kde.org
Tue Nov 13 23:18:49 EST 2007
Jascha Narveson wrote:
> Does anyone else get a parse error when running this simple simple
> thing in miniAudicle?
>
> if (i > 3) {<<<"true">>>} else {<<<"false">>>};
The semi-colons are used incorrectly. Since each of the blocks inside
of the braces is a statement, they must be followed by a semi-colon.
There also should not be one after the end of the line. So:
if (i > 3) {<<<"true">>>;} else {<<<"false">>>;}
-Scott
More information about the chuck-users
mailing list