title: How do I specify a Variable as an Integer in BASIC?
body: <p>So I'm writing a very basic 'Game' Program, just really started coding today, and am running into a problem. The tutorial I'm following, at <a href="http://home.cmit.net/rwolbeck/programmingtutorial/index.htm" rel="nofollow">http://home.cmit.net/rwolbeck/programmingtutorial/index.htm</a> suggests that I do not need to specify that a variable is an integer variable, but whether I do or don't, BlitzMax stops compiling midway with an error message of "Compile Error: Unable to convert 'String' to 'Int'"</p>
  
  <pre><code>name$ = Input("What is your name? ")
  Print "Hello " + name$
  answer = Input("What is 2 and 2? ")
  
  If name$ = "Kyle"
      Print "Kyle is always right."
      WaitKey()
      End
  EndIf
  
  If answer = 4
      Print "No, 2 and 2 is 22."
  Else
      Print "No, 2 and 2 is 4."
  EndIf
  
  WaitKey()
  End
  </code></pre>
  
  <p>Any ideas of what is going wrong, and how to fix it?</p>
  
  <p>P.S. Just joined this site today but I did do multiple searches and didn't find anything answering this specific question/problem.</p>