theninjamanz 29 Posted August 25, 2010 Report Share Posted August 25, 2010 I'm trying to take my programming with ubot to the next level. This is where i am at (not far I am sure) Scenario: User enters a keyword into a text box and runs the script.This keyword is saved into a text file (keyword one per line) User then repeats the above. The ubot reads the text file that contains the keyword from the first run. Then adds the new keyword to the list and this then gets saved off. Consequently, the text file after 5 runs would look something like this. (my keywords) carstoysdogspeoplehouses Now what I want to do. I want to set an If command up that will do the following. When the user runs the script, ubot will check to see if the keyword is already present in the list. If it is, it will stop the script. If it isn't it will run. As the values in the text file might be many. How can I get ubot to cycle through the values to see whether the keyword has been run before or not. Is this going to be achieved with a While command? Any help with the logic would be most appreciated. Ninjaman. Quote Link to post Share on other sites
Seth Turin 223 Posted August 25, 2010 Report Share Posted August 25, 2010 this has come up a lot lately, so I'll probably just add a qualifier for this purpose. Quote Link to post Share on other sites
Gogetta 263 Posted August 25, 2010 Report Share Posted August 25, 2010 this has come up a lot lately, so I'll probably just add a qualifier for this purpose. Great to hear you will be adding this soon, because I need this for many things. Quote Link to post Share on other sites
theninjamanz 29 Posted August 25, 2010 Author Report Share Posted August 25, 2010 Great to hear you will be adding this soon, because I need this for many things. Thanks, shelving this sub then and will come back to it later. Cheers all. 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.