What ist following code doing?


#Konfiguration
// Archiv-Konfigurationsordner - Beispiel: ..\d3server.prg\D3P 
vars empty_archive_conf_folder = "D3" ## d3fc_server_kuerzel
#Ende: Konfiguration

// Variablen
vars empty_cond_doc_type_short[70]
vars empty_cond_source_field[70]
vars empty_cond_source_value[70]
vars empty_cond_destination_field[70]
vars empty_cond_result_text[70]
vars empty_cond_result_id[70]
vars empty_or_doc_type_short[70]
vars empty_or_source_field_1[70]
vars empty_or_source_field_2[70]
vars empty_or_result_text[70]
vars empty_or_result_id[70]
// Ende: Variablen


// NAME_1 Vorgabe-Dateien zu laden
call load_mand_cond_empty()
call load_mand_or_empty()
// Ende: NAME_1 Vorgabe-Dateien zu laden



// Beispielaufruf
// proc hook_vali_import_entry_10_dbs (user, doc_type_short)
// {
    // vars retval
    // retval = conditional_mandatory_fields(doc_type_short)
    // if(retval != 0)
    // {
        // return retval
    // }
// }





proc conditional_mandatory_fields(doc_type_short)
{
    call api_log_info("---------------------------------------")
    call api_log_info("Start conditional_mandatory_fields(:+doc_type_short)")
    call api_log_info("---------------------------------------")
    vars i
   
    for i = 1 while (empty_cond_doc_type_short[i] != "")
    {
    
        if(doc_type_short == empty_cond_doc_type_short[i]) && (dok_dat_feld[empty_cond_source_field[i]] == empty_cond_source_value[i]) && (dok_dat_feld[empty_cond_destination_field[i]] == "")
        {
            additional_ There should be exactly 3 paragraphs separated by the markdown divider: ***.
user