title: How to check multiple variables at once?
body: <p>Is it possible to write a block of code to check all, or all objects/variables of a certain type for a certain characteristic?
  (Without creating an if statement for each)<br/>
  Then set it to something if true or false.</p>
  
  <p><br></p>
  
  <p>Like if you had 3 variables and...</p>
  
  <pre><code> if(a=0||b=0||c=0){
  //set any variable equal to zero to 4
  }
  </code></pre>
  
  <p>preform the action described in the comment</p>
  
  <p><br></p>
  
  <p>Or, complex example, 4 arraylists of type integer:</p>
  
  <pre><code>List&lt;Integer&gt; even = new ArrayList&lt;Integer&gt;(), //positive even ints
  odd = new ArrayList&lt;Integer&gt;(), //positive odd ints
  negaodd = new ArrayList&lt;Integer&gt;() //negative even ints
  negaeven = new ArrayList&lt;Integer&gt;(); //negative odd ints
  </code></pre>
  
  <p>Then something like:</p>
  
  <pre><code>if("AnyArray".isEmpty()){
  whatever-array-is-being-tested/tried = null;
  }
  </code></pre>
  
  <p>So that if any of the arrays ended up being empty, then instead of [], they would return "null".</p>