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.
Any suggestions would be much appreciated.
Thanks in advance