here is an idea I came up with, idk how acceptable it is though lmao:
switch(foo) case 1, 2, 3 ->{
//if true
} default -> {
//if false
}
this could also work:
switch(foo) case 1, 2, 3 ->{
//if true
}
Main problem with it is that it may not accept all data types.