isLess static method
Checks if first value is less than the second one. The operation can be performed over numbers or strings.
value1
the first value to comparevalue2
the second value to compare Returns true if the first value is less than second and false otherwise.
Implementation
static bool isLess(dynamic value1, dynamic value2) {
var number1 = DoubleConverter.toNullableDouble(value1);
var number2 = DoubleConverter.toNullableDouble(value2);
if (number1 == null || number2 == null) return false;
return number1 < number2;
}