Have a boolean yesFound = false. Have a boolean noFound = false. Loop. If you find a yes, yesFound = true. If you find a no, noFound = true.
After the loop:
- if yesFound and noFound, reject.
- if yesFound, it is yes.
- if noFound, it is no.
- otherwise it is null.