Oops! Yes, I had forgotten to rename that variable. That helps. However, even when it identifies a duplicate it still allows the script beyond the “else “ to execute. Plus, depending on what line the duplicate username is located in my csv file, it loops that many times.
So if username “John Patten” is on the third line of my csv text file, the resulting “put” will look like the following: John Patten, password, jpat...@bmail.com, Button 1 John Patten, password, jpat...@bmail.com, Button 1 John Patten, password, jpat...@bmail.com, Button 1 Sorry, username ( John Patten) has already been used. Try another. What I need to happen is the just the last line, otherwise it will create a new entry for an existing user. Is there a solution to this, or does LiveCode server run straight through if-then constructs? Thank you! John Patten SUSD On Jul 31, 2014, at 5:55 PM, Peter W A Wood <peterwaw...@gmail.com> wrote: > To: How to use LiveCode <use-livecode@lists.runrev.com> > > There seems to be a typo in your code: > >> repeat for each line thisLine in tUserFile >> >> if item 1 of tLine is tUsername then > > I think that should be item 1 of thisLine > > Regards > > Peter > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode