/**
 * Given three values, use an alternative way to simulate the functionality of a ternary operator.
 *
 * @param value1 The first value.
 * @param value2 The second value.
 * @param value3 The third value.
 * @return The result of the alternative ternary operator.
 */
fun alternativeTernaryOperator(value1: Float, value2: Float, value3: Float): Float {

    // Use a different approach to achieve the same result as a ternary operator
    val result = if (value1 != 0f) {
        value2
    } else {
        value3
    }
    return result
}
/**
 * Given three values, use an alternative way to simulate the functionality of a ternary operator.
 *
 * @param value1 The first value.
 * @param value2 The second value.
 * @param value3 The third value.
 * @return The result of the alternative ternary operator.
 */
fun alternativeTernaryOperator(value1: Float, value2: Float, value3: Float): Float {
/**
 * Given three values, use an alternative way to simulate the functionality of a ternary operator.
 *
 * @param value1 The first value.
 * @param value2 The second value.
 * @param value3 The third value.
 * @return The result of the alternative ternary operator.
 */
fun alternativeTernaryOperator(value1: Float, value2: Float, value3: Float): Float {

    // Use a different approach to achieve the same result as a ternary operator
    val result = if (value1 != 0f) {
        value2
    } else {
        value3
    }
    return result
}