Getting tkinter.Entry input into if/else statements
<p>Here is my current code, which I have changed multiple times using different answers of different answered questions on here. The problem is I am trying to find a way to get the code to output different answers according to the user input through the tkinter.Entry(). </p>

<p>For example, if the user inputs "screen" then the code will give out something about screens. If user inputs "Python" then the code will print something to do with python programming language.</p>

<p>I am able to get the code to print what the user inputed on button click through the .get() function, however this way it will not communicate with the if/else statements.</p>

<hr>

<pre><code>import tkinter

root = tkinter.Tk()
root.geometry("300x300")
root.title("Try code")

entry = tkinter.Entry(root)
entry.pack()

def on_button():
    if entry.get() == "Screen""screen":
        slabel = tkinter.Label(root, text="Screen was entered")
        slabel.pack()
    else:
        tlabel = tkinter.Label(root, text="")
        tlabel.pack()

button = tkinter.Button(root, text="Enter", command=on_button)
button.pack()

root.mainloop()
</code></pre>

<hr>

<p>Any help would be greatly appreciated.</p>