soulpower 3 Posted March 12, 2010 Report Share Posted March 12, 2010 Hey everyone,I'm trying to match an element on a page to a line inside a file. So for example... I have file.txt which contains the lines: dogcatbearlion and I want to make an argument that if I search the webpage and it finds the word "bear" on the site it will match it to file.txt. What i have done so far is set a variable such as set-->#file-->$read file-->file.txt and want to make an "if" statement like if-->search page (highlight word) = #file Anyone have any pointers on this? Thanx! Quote Link to post Share on other sites
crazyflx 22 Posted March 12, 2010 Report Share Posted March 12, 2010 If it is literally only one word on the line, you could do this: set-> list postion -> file.txt -> 0 if->search page (bear) thenset #word to match from scraped site TO scraped highlighted word looplist total -> file.txt---set ---#word to match from file.txt---next list item -> file.txt---if---evaluate---#word to match from scraped site = #word to match from file.txt---do somethingend loop 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.