I have a variable length Collection full of one letter strings (it can be any type of collection). I am trying to create a result based on what the collection contains. If all of the letters in the collection are “P” then the result is “P”, if all of the letters are “N” then the result is “N”, if there is a mix of the two then the result is “NC”. Is there anyway to do this without creating a complicated mess of loops? Thank you for your help.
Share
Yes you could use:
Just like this: