/**
 * Concatenates the text of three graphics using nested ternary operators.
 *
 * @param graphic1 The text of the first graphic.
 * @param graphic2 The text of the second graphic.
 * @param graphic3 The text of the third graphic.
 * @return The concatenated text of the three graphics.
 */
fun concatenateText(graphic1: String, graphic2: String, graphic3: String): String {

    var result = ""

    // Concatenate graphic1 and graphic2 if both are not empty
    result = if (graphic1 != "" && graphic2 != "") graphic1 + graphic2 else result

    // Append graphic3 to result if graphic3 is not empty
    result += if (graphic3 != "") graphic3 else ""

    return result
}
/**
 * Concatenates the text of three graphics using nested ternary operators.
 *
 * @param graphic1 The text of the first graphic.
 * @param graphic2 The text of the second graphic.
 * @param graphic3 The text of the third graphic.
 * @return The concatenated text of the three graphics.
 */
fun concatenateText(graphic1: String, graphic2: String, graphic3: String): String {
/**
 * Concatenates the text of three graphics using nested ternary operators.
 *
 * @param graphic1 The text of the first graphic.
 * @param graphic2 The text of the second graphic.
 * @param graphic3 The text of the third graphic.
 * @return The concatenated text of the three graphics.
 */
fun concatenateText(graphic1: String, graphic2: String, graphic3: String): String {

    var result = ""

    // Concatenate graphic1 and graphic2 if both are not empty
    result = if (graphic1 != "" && graphic2 != "") graphic1 + graphic2 else result

    // Append graphic3 to result if graphic3 is not empty
    result += if (graphic3 != "") graphic3 else ""

    return result
}