I need to make an expression language conditional statement with a few conditions to check. Googling I can only find examples using ternary
#{SomeBean.someProperty ? 'bob' : 'John'}
I need to have more conditions though. I need something like:
If (SomeBean.someProperty == 'a'){
//Ant
}
Else if (SomeBean.someProperty == 'b'){
//Bob
}
Else if (SomeBean.someProperty == 'c'){
//C++
}
Else{
//Back to the drawing board, something went wrong.
}
How can I write this in expression language?