Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All about if's

Status
Not open for further replies.

lordhuh

Programmer
Apr 25, 2000
96
US
I had this if decision structure in my code
Code:
if blah=blah then
  if something=2 then
  end if
elseif blah=blah2 then
  if something=2 then
  end if
elseif blah=blah3 then
else

endif

for some strange reason my code kept breaking with expected end if at the end. so thinking i missed somthing i searched and searched. in frustration i added 2 end if's to the bottom of the code. this fixed it. (i think) has any one else run into this in there code or am i missing something? Thanks


Karl Pietri
 
Look higher in your code for another if block with a missing end if.

This one is definitely sound and complete, so the missing one will be somewhere above this one.

:)
Paul Prewett
penny.gif
penny.gif
 
Also, I noticed your last endif needs to have a space between the end and the if...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top