AnsweredAssumed Answered

Reorder numbers function

Question asked by Todd Bennett on Mar 21, 2014
Latest reply on Mar 24, 2014 by Todd Bennett

Does anyone have a function (or snippet) for reordering three variables highest to lowest?

 

I have three variables: dimA, dimB, and dimC (all as Double).

I need them reordered so that dimC is always the smallest number and dimA is always the largest.

dimA and dimB may be equal as long as they are larger than dimC.

dimB and dim C may be equal as long as they are smaller than dimA.

If dimA, dimB, and dimC are all equal, nothing needs to change.

 

I made some If, Then, Else statements but there is a bug I couldn't figure out (it has been deleted).

 

Thanks,

Todd

Outcomes