If it equals?

J. Landman Gay jacque at hyperactivesw.com
Thu Aug 22 17:47:01 EDT 2002


"Josh Dye" <Zzyzx at Relia.Net> wrote:

>   repeat for each line 1 in the_file
>     if item 1 of 1 is the_user then
<snip>
> It works. But, it is not searching all of the lines. It only works for the
> first line. Any ideas how to get it to search all of the lines?

That's an "el", not a "one". Like this:

  repeat for each line L in the_file
    if item 1 of L is the_user then...

That's a common misunderstanding on lists where most everybody is using 
a monospaced font. Els and ones look the same.

To be honest, I'm kind of surprised it worked at all. :)

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list