Is there a clean way to implement mlultiple if statements of the same type in julia?

Viewed 94

Something like this:

if mod(i,11) = 1,2,3,4,5...
     #do something
else
     #do something else
end 

I dont want to type out each condition or make a for loop, I want to keep the syntax as simple as possible.

1 Answers

here is the answer to the question

if mod(i,11) ∈ [1,2,3,4,5]
Related