/**
 * This function helps a designer decide what fashion piece to create based on the trending color, fabric type, and weather condition.
 */
fun analyzeDesign(trendingColor: String, fabric: String, weather: String): String {

    return when (trendingColor) {
        "red" -> {
            when (fabric) {
                "silk" -> {
                    when (weather) {
                        "hot" -> "Create a red silk dress for the summer."
                        "cold" -> "Create a red silk coat for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                "cotton" -> {
                    when (weather) {
                        "hot" -> "Create a red cotton blouse for the summer."
                        "cold" -> "Create a red cotton sweater for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                else -> "Invalid fabric type."
            }
        }
        "blue" -> {
            when (fabric) {
                "silk" -> {
                    when (weather) {
                        "hot" -> "Create a blue silk dress for the summer."
                        "cold" -> "Create a blue silk coat for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                "cotton" -> {
                    when (weather) {
                        "hot" -> "Create a blue cotton blouse for the summer."
                        "cold" -> "Create a blue cotton sweater for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                else -> "Invalid fabric type."
            }
        }
        else -> "Invalid trending color."
    }
}
/**
 * This function helps a designer decide what fashion piece to create based on the trending color, fabric type, and weather condition.
 */
fun analyzeDesign(trendingColor: String, fabric: String, weather: String): String {
/**
 * This function helps a designer decide what fashion piece to create based on the trending color, fabric type, and weather condition.
 */
fun analyzeDesign(trendingColor: String, fabric: String, weather: String): String {

    return when (trendingColor) {
        "red" -> {
            when (fabric) {
                "silk" -> {
                    when (weather) {
                        "hot" -> "Create a red silk dress for the summer."
                        "cold" -> "Create a red silk coat for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                "cotton" -> {
                    when (weather) {
                        "hot" -> "Create a red cotton blouse for the summer."
                        "cold" -> "Create a red cotton sweater for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                else -> "Invalid fabric type."
            }
        }
        "blue" -> {
            when (fabric) {
                "silk" -> {
                    when (weather) {
                        "hot" -> "Create a blue silk dress for the summer."
                        "cold" -> "Create a blue silk coat for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                "cotton" -> {
                    when (weather) {
                        "hot" -> "Create a blue cotton blouse for the summer."
                        "cold" -> "Create a blue cotton sweater for the winter."
                        else -> "Invalid weather condition."
                    }
                }
                else -> "Invalid fabric type."
            }
        }
        else -> "Invalid trending color."
    }
}