Livecode Server and Repeat Scripts on Server
Peter W A Wood
peterwawood at gmail.com
Thu Jul 31 21:21:37 EDT 2014
Do you still have the comment at the start of the exit repeat line?
> --exit repeat
Regards
Peter
On 1 Aug 2014, at 09:15, JOHN PATTEN <johnpatten at me.com> wrote:
> 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, jpatten at bmail.com, Button 1
> John Patten, password, jpatten at bmail.com, Button 1
> John Patten, password, jpatten at 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 <peterwawood at gmail.com> wrote:
>
>> To: How to use LiveCode <use-livecode at 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 at 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 at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list