system/src/sc/lang/java/IfStatement.java
public RuntimeStatus execForRuntime(LayeredSystem sys) {
      RuntimeStatus exprStat = expression.execForRuntime(sys);
      if (exprStat != RuntimeStatus.Unset)
         return exprStat;
      RuntimeStatus trueStat = trueStatement.execForRuntime(sys);
      if (trueStat != RuntimeStatus.Unset)
         return trueStat;
      if (falseStatement != null)
         return falseStatement.execForRuntime(sys);
      return RuntimeStatus.Unset;
   }
/**
    * First see if the expression part must be run here, then look for a setting on the true and false statements.
    */
First see if the expression part must be run here, then look for a setting on the true and false statements.
First see if the expression part must be run here then look for a setting on the true and false statements .
public RuntimeStatus execForRuntime(LayeredSystem sys) {
      RuntimeStatus exprStat = expression.execForRuntime(sys);
      if (exprStat != RuntimeStatus.Unset)
         return exprStat;
      RuntimeStatus trueStat = trueStatement.execForRuntime(sys);
      if (trueStat != RuntimeStatus.Unset)
         return trueStat;
      if (falseStatement != null)
         return falseStatement.execForRuntime(sys);
      return RuntimeStatus.Unset;
   }
public RuntimeStatus execForRuntime ( LayeredSystem sys ) { RuntimeStatus exprStat = expression . execForRuntime ( sys ) ; if ( exprStat != RuntimeStatus . Unset ) return exprStat ; RuntimeStatus trueStat = trueStatement . execForRuntime ( sys ) ; if ( trueStat != RuntimeStatus . Unset ) return trueStat ; if ( falseStatement != null ) return falseStatement . execForRuntime ( sys ) ; return RuntimeStatus . Unset ; }
First see if the expression part must be run here, then look for a setting on the true and false statements.
First see if the expression part must be run here then look for a setting on the true and false statements .