title: .lua error 'then' expected near 'else'
body: <p>I am having this error, can't find the error.</p>
  
  <pre><code>    local choice_revive = {function(player,choice)
    local user_id = vRP.getUserId(player)
    if user_id ~= nil then
      vRPclient.getNearestPlayer(player,{10},function(nplayer)
        local nuser_id = vRP.getUserId(nplayer)
        if nuser_id ~= nil then
          vRPclient.isInComa(nplayer,{}, function(in_coma)
            if in_coma then
              if vRP.tryGetInventoryItem(user_id,"medkit",1,true) else
              vRP.tryGetInventoryItem(user_id,"smartwatch",1,true)
              io.write("Smartwatch: Tilkalder Ambulance")
                  then
                vRPclient.playAnim(player,{false,revive_seq,false}) -- anim
                SetTimeout(15000, function()
                  vRPclient.varyHealth(nplayer,{50}) -- heal 50
                end)
              end
            else
              vRPclient.notify(player,{lang.emergency.menu.revive.not_in_coma()})
            end
          end)
        else
          vRPclient.notify(player,{lang.common.no_player_near()})
        end
      end)
    end
  end,lang.emergency.menu.revive.description()}
  </code></pre>
  
  <p>I have tried to make, and look for error, but without luck.
  - If anyone can fix it, tell me please.</p>