How many conditions can you have in 'if' statement with CCS
Posted: Tue Apr 25, 2006 8:50 pm
Hi-
if(i>5){
do stuff here
}
else if(i<2){
do something else here
}
else{
go here
}
doesn't get to the right condition. if i is between 2 and 5, it should go to the else right?
thanks-
Trevor
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
Re: How many conditions can you have in 'if' statement with
Posted: Tue Apr 25, 2006 9:18 pm
Anonymous wrote:
if i is between 2 and 5, it should go to the else right?
Right. Could you post us more of your code? How do you verify that i actually belongs to [2, 5] ? How do you verify that "else" actually is not executed?
P.S. Please use [c0de][/c0de] tags (with "o" instead of "0").
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum