Hello guys, I'm trying to revise for a basic programming test next week and I have hit a brick wall with one of the example programs. Basically I have an if statement with two conditions to check but the second condition isn't getting checked so the program isn't entering the if statement and the result is an answer I dont want.
CODE
if ((DaysSinceDebited[counter]<30)||(Balance[counter]<1000))
{
interest = ((Balance[counter]/100)*3);
}
the problem I am having is that the the second part isn't being checked so if the first part doesn't come up true the if statement is being ignored. Any help would be appreciated as I have been trying to do this for hours now. If you need more of the code to help me out let me no and I'll put it straight up.
Thanks.