hello, can i use min / max operators ? are there some functions for this ? it can be done with IF chains, but is too long

kindly