/**
 * This function appends new elements to a given list based on a conditional statement.
 *
 * @param condition The conditional statement to be evaluated.
 * @param elements The list to which new elements need to be appended.
 * @return The updated list after appending new elements.
 */
fun appendNewElements(condition: Boolean, elements: MutableList<Int>): List<Int> {

    if (condition) {
        elements.add(1)
        elements.add(2)
        elements.add(3)
    } else {
        elements.add(4)
        elements.add(5)
        elements.add(6)
    }
    return elements
}

// Example usage
/**
 * This function appends new elements to a given list based on a conditional statement.
 *
 * @param condition The conditional statement to be evaluated.
 * @param elements The list to which new elements need to be appended.
 * @return The updated list after appending new elements.
 */
fun appendNewElements(condition: Boolean, elements: MutableList<Int>): List<Int> {
/**
 * This function appends new elements to a given list based on a conditional statement.
 *
 * @param condition The conditional statement to be evaluated.
 * @param elements The list to which new elements need to be appended.
 * @return The updated list after appending new elements.
 */
fun appendNewElements(condition: Boolean, elements: MutableList<Int>): List<Int> {

    if (condition) {
        elements.add(1)
        elements.add(2)
        elements.add(3)
    } else {
        elements.add(4)
        elements.add(5)
        elements.add(6)
    }
    return elements
}

// Example usage