def isProcedureDoneOrFileIsEmpty(gcodeText, procedure):
 if (gcodeText == ''):
  return True
 return isProcedureDone(gcodeText, procedure)

def isProcedureDoneOrFileIsEmpty ( gcodeText , procedure ) : if ( gcodeText == '' ) : return True return isProcedureDone ( gcodeText , procedure )
determine if the procedure has been done on the gcode text or the file is empty .