When posting code, use code tags! (the button with the hash '#' sign is used to generate them)
Using a switch/case combo for just one value doesn't make sense. Just use an if statement instead:
if (val == 157) {
// your code here
}
When posting code, use code tags! (the button with the hash '#' sign is used to generate them)
Using a switch/case combo for just one value doesn't make sense. Just use an if statement instead:
if (val == 157) {
// your code here
}