opposite of if condition : <p>I am trying to rewrite my if else statement so I skip the //do nothing part but I can't get my around to find the opposite of the if statement.</p>

<p>someone please help?!</p>

<pre><code>if (decision.equals("repay")){                              
    String riskClass = null;
    if (doc.hasItem("riskclass")){
        riskClass = doc.getItemValueString("riskclass");
    }                                   

    if ( (null == riskClass) || (riskClass.equals("")) || (riskClass.equals("repay")) ){  
        //do nothing
    } else{                                 
        //do something
    }                               
}
</code></pre>
