|
Why Cant we just have a break statement? My code :
|
|
Why would you be breaking out of the loop before going through all of the different entry[0] values? |
|
You may want to indent the code to see where you have return & break. Just highlight the code after you paste in the text entry window and click the format button on the top that has 101010. This information is thanks to a gentleman who pointed out this to me couple weeks back. |
|
You used a return & then a break? I'm not sure about the indenting, but I think the break statement stops the function from getting to the last statement, which means nothing is appended to your index if the keyword isn't already present in the index. Also, you needed to add a counter to every url. You don't do that here. |
I formatted the code.