示例#1
0
  @Override
  public Object performImplementation(ScratchProgram program) throws FunctionResultException {
    while (true) {
      // Bug Fix (Bei einer leeren Schlefe, soll auf
      // Programmstopp geachtet werden
      if (program.checkStop()) {
        return false;
      }

      // Schleife ausführen
      if (childs.get(1) != null) childs.get(1).perform(program);

      // While Auswertung
      boolean bool = true;
      if (childs.get(0) != null) bool = (Boolean) childs.get(0).perform(program);
      if (!bool) break;
    }
    return null;
  }