lundi 10 mai 2021

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

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.

Aucun commentaire:

Enregistrer un commentaire