So I tried to simplify some code this morning using the java or operator and it doesn't seem to work. It went something like this:
I hope this makes sense to somebody out there. I just went back to a stack of if else statements to solve the problem.
Thanks
if ((time < 4) || (time > 10))}What I end up with is zero until 4 but after 10 the val does not return to 0.
val = aVariable}
else val=0;
I hope this makes sense to somebody out there. I just went back to a stack of if else statements to solve the problem.
Thanks