I am trying to write a minimum function that returns the minimum value in a group of values. I want the function to return the smallest number that is not zero. I am using grouping in crytsal.

Can anyone offer any help? Thanks.