Are you converting the numbers to integers or floats before you compare them? If not then you are likely comparing the ascii values of the characters 0 and 100 and not actually the value 0 and 100.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!