We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
problem with != (Read 308 times)
problem with !=
Jul 6th, 2006, 5:23am
 
Hi there.

I imagine it is some semantic problem but I can't understand why using != just doesn't seem to work.  

I'm trying to fill an array with any slider movement values from proControll.  I want any value that isn't "0" and common sense makes me think that:
if(x != 0){
put stuff in the buffer
}
should work to exclude these values.  
However it doesn't unless I use:
if(x==0) {
} else (  
put stuff in the buffer
}

Any ideas why?

chrs
][oyd
Re: problem with !=
Reply #1 - Jul 6th, 2006, 11:35am
 
Sounds like something else might be the cause.. if you could post the actual code that's causing a problem it's more likely we can see what's wrong.
Page Index Toggle Pages: 1