/**
 * This function uses nested if-else statements and the break statement to check multiple conditions and break out of the loop.
 *
 * @param condition1 A boolean value representing the first condition.
 * @param condition2 A boolean value representing the second condition.
 * @param condition3 A boolean value representing the third condition.
 * @param condition4 A boolean value representing the fourth condition.
 * @return A boolean value representing whether any of the conditions is True.
 */
fun breakNestedIfElse(condition1: Boolean, condition2: Boolean, condition3: Boolean, condition4: Boolean): Boolean {

    // Nested if-else statements to check the conditions
    if (condition1) {
        if (condition2) {
            if (condition3) {
                if (condition4) {
                    return true
                } else {
                    return true // If condition4 is False, return True
                }
            } else {
                return true // If condition3 is False, return True
            }
        } else {
            return true // If condition2 is False, return True
        }
    } else {
        return false // If condition1 is False, return False
    }
}
/**
 * This function uses nested if-else statements and the break statement to check multiple conditions and break out of the loop.
 *
 * @param condition1 A boolean value representing the first condition.
 * @param condition2 A boolean value representing the second condition.
 * @param condition3 A boolean value representing the third condition.
 * @param condition4 A boolean value representing the fourth condition.
 * @return A boolean value representing whether any of the conditions is True.
 */
fun breakNestedIfElse(condition1: Boolean, condition2: Boolean, condition3: Boolean, condition4: Boolean): Boolean {
/**
 * This function uses nested if-else statements and the break statement to check multiple conditions and break out of the loop.
 *
 * @param condition1 A boolean value representing the first condition.
 * @param condition2 A boolean value representing the second condition.
 * @param condition3 A boolean value representing the third condition.
 * @param condition4 A boolean value representing the fourth condition.
 * @return A boolean value representing whether any of the conditions is True.
 */
fun breakNestedIfElse(condition1: Boolean, condition2: Boolean, condition3: Boolean, condition4: Boolean): Boolean {

    // Nested if-else statements to check the conditions
    if (condition1) {
        if (condition2) {
            if (condition3) {
                if (condition4) {
                    return true
                } else {
                    return true // If condition4 is False, return True
                }
            } else {
                return true // If condition3 is False, return True
            }
        } else {
            return true // If condition2 is False, return True
        }
    } else {
        return false // If condition1 is False, return False
    }
}