ifelse_clip function

Clip lamb values between a minimum x and maximum y.