'if i in []' is simply a comparison, not a loop that alters the value of i in any way. You have to add some sort of looping construct (for, while, repeat) to force repeated changes in i's value, e. g.
i := 0;
repeat
if i in [0..4, 11.100] then
begin
// whatever
end;
inc(i);
until (i > 100);