title: Or operand with int in if statement
body: <p>My problem is that program is not reading codes as i intended "he" would.</p>
  
  <p>I have</p>
  
  <pre><code>if (hero.getPos() == (6 | 11 | 16)) {
      move = new Object[] {"Up", "Right", "Left"};
  } else {
      move = new Object[] {"Up", "Down", "Right", "Left"};
  }
  </code></pre>
  
  <p>When hero position is 6, the program still goes to else.</p>
  
  <p>Why is that? Is it because of operands? If yes, how should i change it?</p>