title: Make a Custom Conditional Statement - Java
body: <p>Is there a way to make a custom conditional statement? Or is this not possible and I would have to just put the function inside of an <code>if</code>.
  <br><br>
  For example:</p>
  
  <pre><code>customConditional(bar){
      //run this code
  }
  </code></pre>
  
  <p>Where if <code>bar</code> was <code>1</code> it would execute the code and any other number wouldn't.</p>
  
  <p><strong>Edit:</strong> What I was trying to say was, how are conditionals defined and is there a way to define another one?</p>