Q:

Unity3D: Is there a easy way to give a min/max to a value in the inspector?

I am trying to figure out how to give a minimum and maximum to a value in the inspector.
For example:
public float testValue;

I know I can set a minimum and maximum in the code with if/else statements, but that is going to be a mess with a lot of variables. This TestValue will be visibile in the Unity inspector. 
I want to make it possible that the maximum of this value is 100 and the minimum is 0. Is there a fancy way to do this instead of a lot of statements?
Thanks in forward :)

A:

Check the Range attribute:
use it like this:
[Range(0, 100)]
public float testValue;

