Eval retval = null;
Eval evalWhenFalse = BoolEval.FALSE;
switch (evals.length) {
case 3:
evalWhenFalse = evals[2];
case 2:
BoolEval beval = (BoolEval) evals[0];
if (beval.getBooleanValue()) {
retval = evals[1];
}
else {
retval = evalWhenFalse;
}
break;
default:
retval = ErrorEval.UNKNOWN_ERROR;
}
return retval;