If (condition)
block of commands
[elseif (condition)
block of commands]
[else
block of commands]
The round parentisis are mandatory. inside square parentises are optional fields.
Your error was that the parentises you opened for the condition you closed in the middle of the condition.
Another thing, you should place parentises just to improve the reading of the code, so i suggest you to use this:
if ((($intNumber % 2) == 0) && ($intNumber != 7))
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin@ip.pt
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.