If it equals?

Josh Dye Zzyzx at Relia.Net
Thu Aug 22 12:53:01 EDT 2002


Hello,
    I can't quite get it to work. Here is the script that I have so far.

local the_user
local the_password

on mouseup
  set the itemdel to TAB
  ask "Who the hell are YOU ???"
  if it is empty then exit mouseup
  put it into the_user
  repeat for each line l in URL "file:\\ZZYZX\INTERFACE\Names.txt"
    if item 1 of l is the_user then
      put item 2 of l into the_password
      exit repeat
    else
      answer "heavy complaining..."
      exit mouseup
    end if
    ask "Please enter more money ehmm your password"
    if it is the_password then
      answer "do_the_right_thing"
    else
      answer "heavy complaining... again"
    end if
  end repeat
end mouseup

The text file reads this so far...

Dr.Zzyzx TAB jOU~f1b.
Kolok

I can't get it to work. So any problems? 

 - Josh Dye


----- Original Message ----- 
From: "Klaus Major" <k_major at os.surf2000.de>
To: <use-revolution at lists.runrev.com>
Sent: Thursday, August 22, 2002 11:41 AM
Subject: Re: If it equals?


> Hi all,
> 
> >> ...
> >> ask "Please enter more money ehmm your password"
> >> if it is the_password then
> >>   do_the_right_thing
> >> end if
> >> ...
> 
> > that's nice but bullshi ;-)
> 
> Here is the missing t ;-)
> 
> t
> 
> What's the matter with me today ???
> Don't answer this question, thanks...
> 
> Best
> 
> 
> Klaus Major
> k_major at os.surf2000.de
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list