• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Else without an if

 
Lisa Beglaw
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the error ese without an if on the last line of my code...



I think I just have some {} missing or out of place but I can't figure out which, I need someone new to look at cause I am going blind.

Thanks
[ August 07, 2005: Message edited by: Lisa Beglaw ]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you've got one too many "}" before your else.
An editor that shows matching braces can do wonders in cases like these...
 
Lisa Beglaw
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GOT IT!!! I love having this site here as a safety net, but I love it when I can figure it out for myself!
 
Lisa Beglaw
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf...I had my return statement in the wrong spot too.

Correction, there are alot of mistake in that!
[ August 07, 2005: Message edited by: Lisa Beglaw ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic