by zwischenzug · 9y ago · 0 comments
And the first one is akin to:
if (data == 1) {}
if (data == 2) {}
if (data == 3) {}
...
if (data == thevalueIactuallywant) { doSomething(); } Switch(true) {
Case(int0):
// Do stuff for interrupt 0
Case(int1):
// Do stuff for interrupt 1
...[1] - tested on Safari, but still...