Code and response

I have a question. How do I right a code that responds on the output of the user. I know I could use the .include() but what can I attach that to plz someone tell me :frowning: