https://www.codecademy.com/courses/ruby-beginner-en-XYcN1/2/2?curriculum_id=5059f8619189a5000201fbcb

I'm not sure I understand how this loop works

So, the exercise wants me print numbers from 20 - 0 (skipping 20 in this case) that are even.

in line 4, I originally did "next if i % 2 == 0" to get even number, as even numbers wouldn't have a remainder, but for some reason the program printed all odd numbers.

Only when i changed the line to the current code, did it work the way it's supposed to, but looking at the code, one would assume that anything with a remainder of 1 in this instance would be an odd number, not an even number.

So, could someone help me understand this?

Thanks

```
i = 20
loop{
i -= 1
next if i % 2 == 1
print "#{i}"
break if i <= 0
}
```