noch besser ist clamp:

Code:
my.cam_dist = clamp (my.cam_dist, 50, 200);