need help to create dynamic script

Occasional Visitor
I have Multiple rows with different mail ids in them. depending upon the selection, mail needs to send to those row mail ids.
initially, I used List rows present in the table, and use the switch for the 3 projects. now I need to do 23 projects in the same way. need help to create a dynamic script
 
project codes.JPG
0 Replies