Multiple selections within tables

I am trying to get a program to allow multiple selections in a table. I can do that part easy, what I am having problems with is that I need to be able to run through the options and determine if it is selected/highlighted. I am not sure what to write for the if statement. The only item of a multiple selection that I can access is the last item selected and this is based off the index of the item from the on selection changed function.

Help is much appreciated.

Ok just another thing about this. I noticed when I add the function “number of rows” I loose access to all buttons and tables in the NIB. This is from examing the program from UI Browser. If I uncheck the function from the Applescript option the functions return.