Excellent, both methods work as does
Y Function (If ( (x>50) & (x<100), function_of_x,) x);
I think I like the Min/Max solution best as the parentheses structure is easier to follow (i.e., less prone to error).
Y Function (function_of_x, x, Min(a), Max(b));