I am using Control Logix with Studio 5000 software and have a routine that compares the number between 8 different lasers and takes the smallest number and uses it as the final thickness of a board. What would be the easiest way to take the second smallest number and not the smallest?