title: tcl/tk, combine two conditions into one statement
body: <p>I want to combine two conditions in one if statement and avoid using elseif. Right now I have something like this: </p>
  
  <pre><code>if { [getmass] &lt; 22 || [getmass] &gt; 23 } {
    dropatom ;
    continue
  } 
  </code></pre>
  
  <p>I want to make two conditions where [getmass] would be in two different ranges, around 22 and around 35. Is it possible to combine it in one statement under if? </p>
  
  <p>Essentially I want roughly something like [getmass] != 22 || [getmass] != 35, but the actual numbers are not exact integers, they are 22.989... and 35.453... hence I used 22 and 23 for the first condition and 35 and 36 for the second. But I wonder if there is a way to combine it into one short statement? </p>