Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

<when> tags  RSS feed

 
asif Shaikh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please have a look at the code below the code in blue is working but the code in red is not. can you explain why?

****************************************************
**************************************************

***************************************************
 
D. Ogranos
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check where you close the <when>, in relation to the <otherwise> branch. That might be the source of the problem. Also, <otherwise> shouldn't have a test...if you need the test, insert another <when>.
 
Devaka Cooray
Marshal
Posts: 5322
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, asif
Please UseCodeTags instead of font colors - it's hard to read the code otherwise.
You can edit your post to add code tags by clicking the button.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!