Switch Panel Tabs with incoming midi message

Hi, yes, that makes sense

if (condition 1) {
---do something---
} else if (condition 2) {
---do something else---
} else {
---do something else---
}

Although I don't know how you would need to write the condition... ;-/. Regards, mj