Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/10/02 13:44
Read: times


 
#34137 - Strange reaction to IF statement
Maybe some of you know that I'm using Tasking EDE at this time...

I had this piece of code:

if (teller0>200)
{
teller0=0;
}
...
It resetted teller0 though, before it even reached 100!

Now I tried this:

if (teller0>200&&teller0>201) {
teller0=0;
}

And it works....I think this is really strange....(teller0>201 doesn't work alone either)
Somehow the comparing of the values goes wrong.
Maybe you know....Is it possible that this compiler is really that bad?
A package that costed the company I'm currently working for about $1700?
Or is it something else?

List of 15 messages in thread
TopicAuthorDate
Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
What do you mean, before it reached 100?            01/01/70 00:00      
RE: What do you mean, before it reached 100?            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      
RE: Strange reaction to IF statement            01/01/70 00:00      

Back to Subject List