Thread: Using elseif
View Single Post
  #5  
Old 10-30-2009, 06:13 PM
dave61 is offline dave61
dave61's Avatar
I.C.U.

Join Date: Jul 2005
Location: Here & There
Posts: 2,155

Send a message via Yahoo to dave61
Quote:
Originally Posted by gorlosky View Post
I have this, but the ELSE constantly prints to screen ???

if
event(1) and event(4) and never() then
Text("In Area 1 and switch 9 destroyed")
elseif
event(1) and event(5) and never() then
Text("In Area 1 and switch 10 destroyed")
elseif
event(1) and event(6) and never() then
Text("In Area 1 and switch 11 destroyed")
else
Text("What are you waiting for")
endif
gorlosky,

Really confused on this ..... but here is my answer:

if event(1) and event(4) and never() then
Text("In Area 1 and switch 9 destroyed")
elseif event(1) and event(5) and never() then
Text("In Area 1 and switch 10 destroyed")
elseif event(1) and event(6) and never() then
Text("In Area 1 and switch 11 destroyed")
else and never() then
Text("What are you waiting for")
endif

I believe all you were missing on the ELSE command was the "and never() then" loop stopper.

I hope this helps !

Dave
__________________

Last edited by dave61; 10-30-2009 at 06:45 PM.
Reply With Quote