def evaluate_filepath_conditions(file_destination: str, run_configurations:
    dict) ->(str, bool):
    """
    File paths passed will be checked for partial Mustache syntax for sections. If a section tag is provided ({{#section}},
    then the run configuration is checked for the tag.

    If the condition is met, then the destination path will be cleaned
    of the section tags and a true value will be returned.

    If the condition is not met, then the string as it is currently
    being processed at the time of failure is returned, and a false value is returned with it.

    :param file_destination:
    :param run_configurations:
    :return:
    """
    conditional_tag = '{{#'
    tag_close = '}}'
    conditional_tag_len = len(conditional_tag)
    tag_close_len = len(tag_close)
    conditional_tag_index = file_destination.find(conditional_tag)
    while conditional_tag_index >= 0:
        tag_close_index = file_destination.find(tag_close,
            conditional_tag_index)
        tag_start_index = conditional_tag_index + conditional_tag_len
        tag_key = file_destination[tag_start_index:tag_close_index]
        if tag_key not in run_configurations or not run_configurations[tag_key
            ]:
            return file_destination, False
        file_destination = file_destination[:conditional_tag_index
            ] + file_destination[tag_close_index + tag_close_len:]
        conditional_tag_index = file_destination.find(conditional_tag, 
            tag_close_index + tag_close_len)
    return file_destination, True
