This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Else without an if

 
Lisa Beglaw
Ranch Hand
Posts: 65
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic