I'm trying to use a modulo in my for loop in asymptote, however it does not compile. I have a syntax error on the modulo line. Without the modulo, it works just fine.
for (int i=0; i<4; ++i) {
if (i%2==0){
do stuff
}else{
do stuff
}
}
Could you please tell me how to write in correctly in Asymptote?