mellenburg
Programmer
I have a script that reads in a text file that is a series of 'Yes' or 'No' responses to questions. The script counts the number of 'Yes' votes for each question. Right now, it's very crude in that it's a series of if-then statements. How would I use an array to make the code a little more sophisticated?
For instance, I can create a list @yesno that contains the responses for each record.
Then I could use the for each @yesno loop.
However, I can't figure out how to use a different counter each time through the loop.
Thank you for any help.
For instance, I can create a list @yesno that contains the responses for each record.
Then I could use the for each @yesno loop.
However, I can't figure out how to use a different counter each time through the loop.
Thank you for any help.