title: How to use flow control to request the user inputs an integer as opposed to a string
body: <p>My program asks a user for a number. I'm working with flow control to ensure that the user enters only a number, and if the user enters anything other than a number, the program prompts the user to "Please enter a number". Even when the user enters a number, the flow control statement asking the user to "Please enter a number" runs. </p>
  
  <p>I'm not getting any error messages, but one of my <code>if</code>/<code>else</code> statements must have inappropriate syntax. I've done research about what "variable" should be set to to achieve the desired output, but I must not have the appropriate boolean value. </p>
  
  <pre><code>puts "Enter a number."
  variable = gets.chomp
  variable = variable.to_i
  
  if variable != Integer
   puts "Please enter a number."
  elsif variable == Integer 
   puts "Thank you. Your number is #{variable}."
  end
  </code></pre>
  
  <p>Even when I actually enter a number in the terminal, I only get "Please enter a number." I expect that when I enter a number, I will get "<code>Thank you. Your number is #{variable}.</code>"</p>