I am using play2 framework, so when I retrieving parameters I always get Option
. But I will only continue to process only if all the Options are matched (Not None).
I don't want to write nested match
as that looks ugly.
if( isDefined("a") && isDefined("b"){
//dosomething
}