so I have this part of a code on a finished project:
if (mode == 1) {
repeats = 2;
columns = 6;
size = 24;
}
else if (mode == 2) {
repeats = 2;
columns = 8;
size = 48;
}
else if (mode == 3) {
repeats = 3;
columns = 6;
size = 36;
}
I'm just messing with it and I was wondering if there is a better way to write this part using the ? operator or any other way.