Page 1 of 1

SOLVED - How do I stop code from executing?

Posted: Mon Jul 25, 2011 3:17 pm
by admin12
I have two password fields. I want to be able to compare them and if they do not match, I want to stop executing code so they can re-enter the passwords again.

Here is the code chunk:

========================
if UserPass1 <> UserPass2 then
answer "Passwords do not match - try again"
Go to top
else
end if
========================

What do I have to do to make it stop? I thought it was Go to top, but that does not work.

Thanks in advance.

Mike

Re: How do I stop code from executing?

Posted: Mon Jul 25, 2011 3:42 pm
by dunbarx
"Exit" to top is what you are looking for. You can also simply exit the enclosing handler, or, depending on how it is written, maybe recall it?

Craig Newman