Tish 0 Posted November 17, 2014 Report Share Posted November 17, 2014 I'm Newbie (disclaimer), and I appreciate your help in advance. I finished scripting a scrape code with lots of help from you and uBot customer service. Thank you. I am now pulling a part the entire script section by section to try to understand what was done by reviewing videos, code views and I've written my plan for what I wanted from the script. I have a few questions that I hope will help me with the big picture. I don't quite understand the sequencing that the script finally took. For example, the clear list is done within a loop that started the whole sequence. Does anyone have any advice on learning how to know what comes where in your sequencing of the script? Any tutorials on that? I know trial and error and learning the features are all part of it, but it's still seems illogical to clear a list before I started the list, so any help on how to sequence within uBot would be greatly appreciated. Also, one other thing. What does #index (variable), message -1 means? Does that mean we are starting that variable loop at a -1 position versus a zero? and why? Again, thank you for any insight that you may have. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 17, 2014 Report Share Posted November 17, 2014 Your logic comes from the logical order of the process of your task. Clear List - http://wiki.ubotstudio.com/wiki/Clear_List Ubot wiki - http://wiki.ubotstudio.com/wiki/Main_Page VIds - http://www.ubotstudio.com/tutorials #2 for clear list for the index question: look at a loops video sjould be easy to find by reading the video description. In programming, list start a 0 not 1 as a human might think. Computers are zero based so often they begin at 0. Looping through table or list you start the index at -1 to start at 0, other wise you will skip the first item and then ultimately exceed the list/table you are looping. The increment will increase that index at the point of insertion, usually if starting at -1 at beginning of loop, else at the end. HTHelps, CD Quote Link to post Share on other sites
Tish 0 Posted November 17, 2014 Author Report Share Posted November 17, 2014 Your logic comes from the logical order of the process of your task. Clear List - http://wiki.ubotstudio.com/wiki/Clear_List Ubot wiki - http://wiki.ubotstudio.com/wiki/Main_Page VIds - http://www.ubotstudio.com/tutorials #2 for clear list for the index question: look at a loops video sjould be easy to find by reading the video description. In programming, list start a 0 not 1 as a human might think. Computers are zero based so often they begin at 0. Looping through table or list you start the index at -1 to start at 0, other wise you will skip the first item and then ultimately exceed the list/table you are looping. The increment will increase that index at the point of insertion, usually if starting at -1 at beginning of loop, else at the end. HTHelps, CDYes it helps. Thank you for your time. 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.