All I meant was that we both used the sw_vers command and used a fixed list of macOS versions to find the best match. That seems to be the case in both macros. Sorry if the comparison bothers you.
I have a question for you. I like the way you used "is before." According to the KM documentation, that is supposed to mean "is alphabetically before." but look at the following: (notice it evaluates to TRUE)
Alphabetically, 2 is not before 14, as you can see here: (notice it evaluates to FALSE)
So this seems to show that KM is using numerical comparisons, not alphabetical comparisons, for "is before". If they were alphabetical comparisons, then 14 would be before 2, just as "AD" is before "B." But digits are resulting in a different result than alphabet characters!
I had no idea this feature existed. It is a great feature, and I'm amazed that you found it. How did you know about that? I have to resurrect my idea that you must be an alias for The Architect, because only an architect would know about undocumented features, and use them to solve problems. You are using an undocumented feature here to write your code. I'm very impressed.