Select Next Highest Order Decision Pseudo Code

If all decisions have not already been eliminated

  Get order of last decision selected

  If the last decision selected had the highest order

    Set the current decision to the first

  Else

    Set the current decision to the next order

  End if

  While not done

    If current decision has been eliminated

      If the current decision has the highest order

        Set the current decision to the first decision

      Else

        Set the current decision to the next order

      End if

    Else

      Select the current decision

      Set done flag

    End If

  End while

Exit Sub

 Note: After this block, the logic module terminates.

More information

Select Next Highest Order Decision.