Hi Sue, It sounds as though you just need to incorporate an if... then statement in your present code. I imagine you already have a method to read each of the cell's contents as a string variable and include it in your list. If the string sometimes contains the word "available", try something like: ... let cellContents = ;your code to read next cell's contents if (StringContains (cellContents, "available")) then ;your code to include cellContents in the list endif ... hth Martin ----- Original Message ----- From: "Sue B" <sueb@xxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Tuesday, March 03, 2009 12:58 AM Subject: [jawsscripts] Need code example for this situation > Hi all, > > I'm considering making a change to some script code I wrote a while ago. > The code collects information from several rows and columns (sort of > like cells of a table) on the screen and presents them in a list box. > The user then determines which one they want to click on from the list > and selects the OK button. This is of course like the Links List in IE. > Anyway, the problem with my code is that it displays the state of each > of the almost 150 "cells" of the screen. All I really want in the list > is ones that meet a certain condition. I can identify that condition > easy enough, but what I'm wondering is if someone already has some code > that shows how I can place only items meeting a particular condition in > the list. More specifically I only want to list those items that are > "available" in this case. I just can't figure out how to generate the > list itself when it will not contain the same items each time. I tried > looking at how the Links List is generated in the IE scripts, but it > wasn't useful to me. > > If this makes sense to anyone I'll appreciate suggestions. > > Thank you in advance, > > Sue B. > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at http://www.freelists.org/list/jawsscripts