title: Troubles with Boolean Algebra
body: <p>maybe there is a simple solution for my Problem, but I cannot find it! Following Problem (in Java program):</p>
  
  <p>Log.d(TAG, "----------------------> " + ((x &lt; LEFT_X) || (x > RIGHT_X)));</p>
  
  <p>Assuming, that LEFT_X = 100 and RIGHT_X = 1000</p>
  
  <p>if the value of x = 50, then the output is TRUE -> that is what I ecpected</p>
  
  <p>if the value of x = 1050, then the output = TRUE -> that is what I expected</p>
  
  <p>if the value of x = 500, the output = TRUE too -> but here I would expect FALSE (because FALSE OR FALSE = FALSE)!</p>
  
  <p>What do I made wrong?</p>