For loop condition filter

Here is the ideal way:

for x in 1:10
    x != 5 && println(x)
end

You can write out an explicit if if you prefer.

Extra syntax to stuff this into the loop is probably unwarranted.

5 Likes