/**
 * Given a condition, return the trueValue if the condition is true, otherwise return the falseValue using a ternary operator.
 *
 * @param condition A boolean value.
 * @param trueValue A value to return if condition is true.
 * @param falseValue A value to return if condition is false.
 * @return The trueValue if the condition is true, otherwise the falseValue.
 */
fun ternaryOperatorCondition(condition: Boolean, trueValue: Any, falseValue: Any): Any {

    return if (condition) trueValue else falseValue
}
/**
 * Given a condition, return the trueValue if the condition is true, otherwise return the falseValue using a ternary operator.
 *
 * @param condition A boolean value.
 * @param trueValue A value to return if condition is true.
 * @param falseValue A value to return if condition is false.
 * @return The trueValue if the condition is true, otherwise the falseValue.
 */
fun ternaryOperatorCondition(condition: Boolean, trueValue: Any, falseValue: Any): Any {
/**
 * Given a condition, return the trueValue if the condition is true, otherwise return the falseValue using a ternary operator.
 *
 * @param condition A boolean value.
 * @param trueValue A value to return if condition is true.
 * @param falseValue A value to return if condition is false.
 * @return The trueValue if the condition is true, otherwise the falseValue.
 */
fun ternaryOperatorCondition(condition: Boolean, trueValue: Any, falseValue: Any): Any {

    return if (condition) trueValue else falseValue
}