Yesterday, 09:09 PM
I think what you want to do is nest _IIFs.
Code: (Select All)
clamped = _IIF(value < minValue, minValue, _IIF(value > maxValue, maxValue, value))