Object result;
final int num1;
if ((result = leftExpr.execute(context)) instanceof Number) {
num1 = ((Number) result).intValue();
} else {
throw new ScriptRuntimeException(StringUtil.concatObjectClass("left need a int, but found ", result), this);
}
final int num2;
if ((result = rightExpr.execute(context)) instanceof Number) {
num2 = ((Number) result).intValue();
} else {
throw new ScriptRuntimeException(StringUtil.concatObjectClass("right need a int, but found ", result), this);
}
if (num1 < num2) {
return new IntAscIter(num1, num2);
} else {
return new IntDescIter(num1, num2);