PDA

View Full Version : Application.ExitScript!


el5ateer
10-03-2006, 04:04 AM
Hello again Guyz,

I have a question about the application.exitscript action .. let's say i have 2 if conditions in the application.

something like

if whatever==32 then
-- do action --
end

if whatever==888 then
-- do action --
end


if i wrote this in the first condition

if whatever==32 then
-- do action --
else
Application.ExitScript();
end


does this stop only the 1st condition and proceed to the next one or it does stop the whole script ?!

if it does stop the whole script so .. how can i stop only the 1st one and proceed to the other ?!

Thanks,
Galal

Roboblue
10-03-2006, 08:21 AM
try
if whatever == 32 then
do action
elseif whatever == 888 then
do action
else
Application.ExitScript();
end
this will not exit the script unless the whatever is not equal to the set values

el5ateer
10-04-2006, 08:22 AM
thnx for ur reply mate .. U made me think it another way and realised it .. thnx again :)

Roboblue
10-04-2006, 08:55 AM
No problem, glad I could help