Where in the manual are the specifications for the order of evaluation that produce the following result?

```
Sum[If[OddQ[n], 1, 0]/n!, {n, 0, ∞}]
(*0*)

```

---

****Addendum****

Arguments about `If` being somewhat 'special' do not explain

```
Sum[If[OddQ[n], 1, 0]/n!, {n, 0, 10}]
(*result is not zero*)

```

---

*Original question*

Can you confirm the following is a bug?

```
Sum[If[OddQ[n], 1, 0]/n!, {n, 0, ∞}]
(*0*)

```

Adding up positive numbers should not result in zero! The answer should be

```
1/2 (E - 1/E)

```

I have MMA "11.3.0 for Microsoft Windows (64-bit) (March 7, 2018)"

Is `Sum` reliable?