switch code error - expects ; where one is!

          switch (x * 100 + y * 10 + z) {
0 - 2:
              numerator = 5;
              break;
100 - 103:
              numerator = 3;
              break;
110 - 133: <<< Here is error: expected ';' before ':' token
              numerator = 1;
              break;
          } //end switch

Now, its not fact I’m using ranges… where DOES it want the ;! theres one after break;

Which language is this? Or are you missing the case keyword?

Sorry forgot "case"...

Also, “0 - 2” could just as well be written “case -2:” and so on.

mattlogue:
Sorry forgot "case"...

Did it solve the problem?

Hi,
Have a good read;

https://www.arduino.cc/reference/en/language/structure/control-structure/switchcase/

Tom.... :slight_smile: