Instead of writing many if..else statements, you can use the switch statement. The switch statement selects one of many code blocks to be executed" ~ W3schools : r/programminghorror
M10 PF W3+G2, Changeover switch 20A with enclosure IP65, 3-pole, without OFF,IP65 - Tipteh