Five variables being unequal

BlitzPlus Forums/BlitzPlus Programming/Five variables being unequal

This seemed very interesting so I tried various structures under random input repeated millions of times. If it is known in advance that certain outcomes are more likely than others then nests of conditions with an exit on finding the likely outcome will be much more efficient than one condition, depending on how the tests are ordered. If outcomes are more or less random then exited sets of tests will still be faster but probably not enough to matter very much for a small number of variables.