Using inputted text in an "if" statement

Is it possible to put *input_text and have it recognized by an if statement?
ex.
*create name “none”

*input_text name

*if name = “John”

         His name is John

Yes, you can do exactly that