/**
 * Perform an alternative to ternary operator.
 *
 * @param condition A boolean indicating the condition to be evaluated.
 * @param trueValue The value to be returned if the condition is true.
 * @param falseValue The value to be returned if the condition is false.
 * @return The value based on the condition.
 */
fun alternativeTernaryOperator(condition: Boolean, trueValue: Any, falseValue: Any): Any {

    return if (condition) trueValue else falseValue
}

// Exercise: Complex Number Manipulation

// In this exercise, you are a graphic designer working on a project that involves complex numbers and polar coordinates representation.
// Your task is to write a function that performs a complex number manipulation operation and makes use of an alternative
/**
 * Perform an alternative to ternary operator.
 *
 * @param condition A boolean indicating the condition to be evaluated.
 * @param trueValue The value to be returned if the condition is true.
 * @param falseValue The value to be returned if the condition is false.
 * @return The value based on the condition.
 */
fun alternativeTernaryOperator(condition: Boolean, trueValue: Any, falseValue: Any): Any {
/**
 * Perform an alternative to ternary operator.
 *
 * @param condition A boolean indicating the condition to be evaluated.
 * @param trueValue The value to be returned if the condition is true.
 * @param falseValue The value to be returned if the condition is false.
 * @return The value based on the condition.
 */
fun alternativeTernaryOperator(condition: Boolean, trueValue: Any, falseValue: Any): Any {

    return if (condition) trueValue else falseValue
}

// Exercise: Complex Number Manipulation

// In this exercise, you are a graphic designer working on a project that involves complex numbers and polar coordinates representation.
// Your task is to write a function that performs a complex number manipulation operation and makes use of an alternative