Home:ALL Converter>If statement: what is the difference

If statement: what is the difference

Ask Time:2017-01-17T18:38:09         Author:Dennis

Json Formatter

What is the difference between:

if (beweg[temp+x,2] > 10 & x<0 | x>0)

and

if (beweg[temp+x,2] > 10 & x!=0)

I want to test whether x is not 0. Both give me difference solutions.

Author:Dennis,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41694885/if-statement-what-is-the-difference
yy