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

If statement to continue

 
Melisa Mitchell
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I have this code...


the stuff that is in bold is what i have added to it, what i have to do is say if thislevel is equal to null then continue, but its not working!?!?! what am i doing wrong anyone?

Thanks

[ September 25, 2008: Message edited by: Melisa Mitchell ]
[ September 25, 2008: Message edited by: Melisa Mitchell ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Melisa,
I think you mean the opposite - to only do the if statement if thisLevel is not null. (If it were null and the if statement executed, you'd get a null pointer calling getEnabled.)


When thisLevel is null, the if statement doesn't execute which means the next statement is the next iteration of the loop.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic