Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

if-else doubt

 
saloni jhanwar
Ranch Hand
Posts: 583
Firefox Browser Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Output :try again

but it should be "give exam first" and it comes only when i pass false in if condition where i did pass exam.done() done() is also returning false why it is not working with that ?
 
Matthew Brown
Bartender
Posts: 4567
8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You show the code for IfElseTest2, but you're creating an IfElseTest1.
 
saloni jhanwar
Ranch Hand
Posts: 583
Firefox Browser Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Brown wrote:You show the code for IfElseTest2, but you're creating an IfElseTest1.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic