/**
 * This exercise requires you to complete the code to concatenate two strings based on a given condition.
 *
 * @param condition1 The first condition.
 * @param condition2 The second condition.
 * @return The concatenated string based on the given conditions.
 */
fun concatenateString(condition1: Boolean, condition2: Boolean): String {

    val string1 = "First string"
    val string2 = "Second string"
    var result = ""

    if (condition1) {
        // Concatenate string1 to result
        result += string1
    }

    if (condition1 && !condition2) {
        // Concatenate string2 to result
        result += string2
    }

    if (!condition1 && condition2) {
        // Concatenate "Both conditions are true" to result
        result += "Both conditions are true"
    }

    if (!condition1 && !condition2) {
        // Concatenate "Both conditions are false" to result
        result += "Both conditions are false"
    }

    return result
}
/**
 * This exercise requires you to complete the code to concatenate two strings based on a given condition.
 *
 * @param condition1 The first condition.
 * @param condition2 The second condition.
 * @return The concatenated string based on the given conditions.
 */
fun concatenateString(condition1: Boolean, condition2: Boolean): String {
/**
 * This exercise requires you to complete the code to concatenate two strings based on a given condition.
 *
 * @param condition1 The first condition.
 * @param condition2 The second condition.
 * @return The concatenated string based on the given conditions.
 */
fun concatenateString(condition1: Boolean, condition2: Boolean): String {

    val string1 = "First string"
    val string2 = "Second string"
    var result = ""

    if (condition1) {
        // Concatenate string1 to result
        result += string1
    }

    if (condition1 && !condition2) {
        // Concatenate string2 to result
        result += string2
    }

    if (!condition1 && condition2) {
        // Concatenate "Both conditions are true" to result
        result += "Both conditions are true"
    }

    if (!condition1 && !condition2) {
        // Concatenate "Both conditions are false" to result
        result += "Both conditions are false"
    }

    return result
}