The problem I'm having is this function is returning TRUE when the Input value is 1000 or greater.
Why is that a problem? Seems that is the way you've coded it. ...or, as the example above implies, did you mean to say that the function is not returning a true value? Also, rather than coding an else, just do this:
var MinValue = 935;
var inputvalue = 1000;
if (inputvalue <= MinValue )
alert("input value less than Min value")
What I should have said is, when the inputValue is greater than or equal to 1000 the the function goes into the alert("Value less than Min Value") section of the code.
This should have returned alert("Value good") as 1000 is not less than or equal to 935.
If the inputvalue is equal to 980 or 970 etc the function returns alert("Value good"), which is correct.
I cannot figure out why when the inputvalue is >= 1000 the function returns alert("Value less than Min Value").
The function is just not validating correctly.
The inputvalue is being read from a webpage and the MinValue is being read form the database.