in src/main/java/org/apache/sling/scripting/sightly/compiler/expression/nodes/BinaryOperator.java [206:213]
public static boolean lt(final Object left, final Object right) {
if (left instanceof Number && right instanceof Number) {
return ((Number) left).doubleValue() < ((Number) right).doubleValue();
}
throw new SightlyCompilerException(
"Operands are not of the same type: comparison is supported for Number types only."
+ "Operands are: leftOperand=" + left + ", rightOperand=" + right);
}