/**
 * A psychologist wants to determine the emotional state of the patient based on certain conditions.
 *
 * Complete the code below to check if the patient is experiencing emotions that satisfy the given conditions.
 * Use the OR operator to combine conditions.
 *
 * @param emotion1 The first emotion to check.
 * @param emotion2 The second emotion to check.
 * @param condition1 The first condition to satisfy.
 * @param condition2 The second condition to satisfy.
 * @param condition3 The third condition to satisfy.
 * @return The emotional state of the patient.
 *
 * Conditions for each emotion:
 * - Anxiety: condition1 is True or condition2 is True
 * - Anger: condition1 is True and condition2 is True
 * - Happiness: condition1 is True or condition3 is True
 *
 * Note: If none of the given emotions occur, return "No emotion detected."
 */
fun checkEmotion(emotion1: String, emotion2: String, condition1: Boolean, condition2: Boolean, condition3: Boolean): String {

    if ((emotion1 == "Anxiety" || emotion2 == "Anxiety") && (condition1 || condition2)) {
        return ""
    }
    return "No emotion detected."
}
/**
 * A psychologist wants to determine the emotional state of the patient based on certain conditions.
 *
 * Complete the code below to check if the patient is experiencing emotions that satisfy the given conditions.
 * Use the OR operator to combine conditions.
 *
 * @param emotion1 The first emotion to check.
 * @param emotion2 The second emotion to check.
 * @param condition1 The first condition to satisfy.
 * @param condition2 The second condition to satisfy.
 * @param condition3 The third condition to satisfy.
 * @return The emotional state of the patient.
 *
 * Conditions for each emotion:
 * - Anxiety: condition1 is True or condition2 is True
 * - Anger: condition1 is True and condition2 is True
 * - Happiness: condition1 is True or condition3 is True
 *
 * Note: If none of the given emotions occur, return "No emotion detected."
 */
fun checkEmotion(emotion1: String, emotion2: String, condition1: Boolean, condition2: Boolean, condition3: Boolean): String {
/**
 * A psychologist wants to determine the emotional state of the patient based on certain conditions.
 *
 * Complete the code below to check if the patient is experiencing emotions that satisfy the given conditions.
 * Use the OR operator to combine conditions.
 *
 * @param emotion1 The first emotion to check.
 * @param emotion2 The second emotion to check.
 * @param condition1 The first condition to satisfy.
 * @param condition2 The second condition to satisfy.
 * @param condition3 The third condition to satisfy.
 * @return The emotional state of the patient.
 *
 * Conditions for each emotion:
 * - Anxiety: condition1 is True or condition2 is True
 * - Anger: condition1 is True and condition2 is True
 * - Happiness: condition1 is True or condition3 is True
 *
 * Note: If none of the given emotions occur, return "No emotion detected."
 */
fun checkEmotion(emotion1: String, emotion2: String, condition1: Boolean, condition2: Boolean, condition3: Boolean): String {

    if ((emotion1 == "Anxiety" || emotion2 == "Anxiety") && (condition1 || condition2)) {
        return ""
    }
    return "No emotion detected."
}