def METHOD_NAME(self, node: ASTExpression) -> str:
    """
    Prints a ternary operator.
    :return: a string representation
    """
    condition = self.print(node.get_condition())
    if_true = self.print(node.get_if_true())
    if_not = self.print(node.if_not)
    return "(" + if_true + ") if (" + condition + ") else (" + if_not + ")"