When posting crapload of code like that, format it properly using [ code ] tags
You don't need a ; at the end of the if statement line
if (hoursworked > standardhours)
;<---
Code:
if (totalsales < 100 && totalsales > 1.00); {
{
comission = totalsales * .05;
}
else if {
(totalsales >= 100 && totalsales < 300);
{
totalsales * .10 = comission;
}
else
(totalsales >=300)
comission = totalsales * .15;
}
}
You have a really bad nested statement here, I would suggest you to look at it closer and figure out where the brackets needs to be and where the condition check statement should be. That should solve your problem. A proper nested statement would look like this:
Code:
if(something=0)
{
something here;
}
else if(something<0)
{
something here;
}
else
{
something here;
}