theninjamanz 29 Posted September 16, 2010 Report Share Posted September 16, 2010 Here's what I am trying to accomplish. I set a word like "Musical dingbats" to a variable. I run the script. The script needs to check a text file and if the word "Musical Dingbats" is in the list it stops. Else ADD TO "musical dingbats" to LIST. Over time you get a text file that contains a list of words that are unique. I want to use this to trigger whether a script is run or not. In laymens terms:If the project word has been used before don't run the report. I don't know how to cycle through the list and check the keyword each time. Is there a way to check a list without having to first load in somewhere. I tend to load stuff into Google and then just use a search page function, but there must be a better way! Quote Link to post Share on other sites
MiriamMB 63 Posted September 16, 2010 Report Share Posted September 16, 2010 Here's what I am trying to accomplish. I set a word like "Musical dingbats" to a variable. I run the script. The script needs to check a text file and if the word "Musical Dingbats" is in the list it stops. Else ADD TO "musical dingbats" to LIST. Over time you get a text file that contains a list of words that are unique. I want to use this to trigger whether a script is run or not. In laymens terms:If the project word has been used before don't run the report. I don't know how to cycle through the list and check the keyword each time. Is there a way to check a list without having to first load in somewhere. I tend to load stuff into Google and then just use a search page function, but there must be a better way! Have you tried using the Contains command yet? Sounds like it's what you need. You would add the text file to a list and then compare the list items against the variable. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.