Finding the lesser of two numbers

Alright, maybe I’m just making this far too difficult on myself again. I’m taking two clicks on a kslider, creating a list, and determining the number of semitones between selected notes. I now need to determine which of the two notes is lowest, and send on this MIDI number. The question sounds so easy that I’m sure the answer is easy. So, either my logic is seriously flawed in the attached patch, or I’m just creating obstacles that I shouldn’t have to deal with!

– Pasted Max Patch, click to expand. –

Copy all of the following text. Then, in Max, select New From Clipboard.

>
> Alright, maybe I’m just making this far too difficult on myself
> again. I’m taking two clicks on a kslider, creating a list, and
> determining the number of semitones between selected notes. I now
> need to determine which of the two notes is lowest, and send on this
> MIDI number. The question sounds so easy that I’m sure the answer
> is easy. So, either my logic is seriously flawed in the attached
> patch, or I’m just creating obstacles that I should have to deal with!

> There is a reason a tradition arises – no reason to ignore it completely, IMHO.
>
> I use [if] all the time – particularly after counter to exit a loop -
> simply because it nicely handles the associated logic in one object.

Don’t get me wrong…I use if statements all the time…just not in Max. It does feel so clunky and out of place within Max, and always seems as if there’s a better, more efficient way to accomplish the task at hand–whatever that may be.