title: Batch : Simply Syntax Error : Goto was unexpected at this time
body: <p>So I am trying to write a basic computer program. And I'm having a bit of trouble with some syntax. The code is as follows.</p>
  
  <pre><code>@echo off
  cls
  color 71
  :start
  echo        -----------------------------------
  echo        Welcome to Tandy's Calculator! v0.1
  echo        -----------------------------------
  echo           Enter your first number below
  echo Type "help" to see the list of available commands
  echo        -----------------------------------
  set /p "_input1=Please Enter The First Number or Command:"
  cls
  goto subroutine
  
  :subroutine
  :: the below line gives me the "goto was unexpected at this time" error
  if /i "%_input1%"=="help" goto help1
  if /i "%_input1%"=="back" goto _input1
  if /i "%_input1%"=="clear" goto clearVar (
  goto checkVar
  )
  </code></pre>
  
  <p>Every time I execute the file I am receiving an error
  "goto was unexpected at this time" and the command window shuts.</p>
  
  <p>Using the pause command I've been able to pinpoint the part of the program where I get the error message. This has been commented in the program.</p>
  
  <p>Can anyone help me? What is wrong with my syntax?</p>