Simple answer don't put a ;
After an if statement its no longer a conditional control structure if terminated by a ;
if (condition) /// no terminating ;
{
...
}
Simple answer don't put a ;
After an if statement its no longer a conditional control structure if terminated by a ;
if (condition) /// no terminating ;
{
...
}