title: AWS Step Function returns condition path references error
body: <p>I am running step functions with two choices in AWS Step Functions.</p>
  
  <pre><code>...
  "ChoiceState": {
    "Type" : "Choice",
    "Choices": [
      {
        "Variable": "$[0].input",
        "NumericEquals":1,
        "Next": "FirstMatchState"
      },
      {
        "Variable": "$[0].input",
        "NumericEquals":2,
        "Next": "SecondMatchState"
      }
    ],
    "Default": "DefaultState"
  },
  ...
  </code></pre>
  
  <p>choice state entered with this input</p>
  
  <pre><code>//ChoiceStateEntered
  
  {
  "name": "ChoiceState",
  "input": 1
  }
  </code></pre>
  
  <p>Error thrown</p>
  
  <pre><code>{
   "error": "States.Runtime",
   "cause": "An error occurred while executing the state 'ChoiceState'      (entered at the event id #7). Invalid path '$[0].input': The choice state's condition path references an invalid value."
  }
  </code></pre>