Optimize nested if statements
<p>Is their a simpler way to emulate this logic?</p>

<p>Every single method being called return True or False if any of the following methods returns a False then the this.displayError() method gets called.</p>

<p>I can't think of a simpler emulating this logic, any thoughts?</p>

<pre><code>     main: function(){
    if(this.isWRNotProcessed()){
        if(this.retriveWRMetaData()){
            if(this.retrieveWRLines()){
                this.getDistinctOrders();
                if(this.createNewPOs()){
                    this.approvePOs();
                } else{this.displayError();}
            } else{this.displayError();}
        } else{this.displayError();}    
    } else{this.displayError();}
      }
</code></pre>

<p>EDIT: Added an additional else statement when invoking this.createNewPOs()
Sorry about that, and thanks for all the responses they are all helpful! </p>

<p>Also could a Try Catch statement work on this logic instead of IFs?</p>
