Checks if one number(float) as bigger than the other(float)
Returns yes: if first > second
Returns no: if first <= second
Returns exception if one of the inputs is not a number
first = parseFloat(args.first);
if (isNaN(first)) {
throw 'first is not valid: '+args.first;
}
second = parseFloat(args.second);
if (isNaN(second)) {
throw 'second is not valid: '+args.second;
}
if (first > second) {
return 'yes';
} else {
return 'no';
}
README
Checks if one number (float) is bigger than the other (float).
Returns yes: if the first > second.
Returns no: if first <= second.
Returns an exception if one of the inputs is not a number.