All right! Time to add in a little control flow.
if half of our branch, we want to check whether the user’s input contains an
if string_to_check.include? "substring"
We can do that using Ruby’s
.include? method, which evaluates to
true if it finds what it’s looking for and
(As a general rule, Ruby methods that end with
? evaluate to the boolean values
We want to check
user_input for the substring
if statement in the editor. It should check to see if
After running the code, make sure to enter a string in the terminal.