Nothing in the console


I’m trying to run the following program:

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Ternary : MonoBehaviour {
    	public string user;
    	string console;
    	void OnDisable(){
    		console = (user != "") ? "Please enter a name" : "Hello " + console + "!";

Upon putting a name for user in Unity, and disabling my object, nothing is displayed in the console. Is there something wrong with Unity or the code? Thanks!

console is just a string. if you want to see it, use Debug.Log

Wow that’s simple, thanks!