• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C:if misunderstanding

 
Charessa Reilly
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I'm operating under some sort of misunderstanding of "if" or maybe JSP and even Java in general. I have this code:



When it executes I get a popup alert that says "simone mitchell" (the value previously put into irecord.manager) then a popup that says "up yours" (you can tell I'm getting frustrated at this)

Shouldn't I get a popup in between the two? How can both those "if" statments fail?
 
Charessa Reilly
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OOOOOOOOOOOOOR

it could be I'm stupid. Just noticed I'm missing some $ there.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also use the empty operator rather than testing for null.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic