Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on a question in EL

 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Given:
<% int[] nums = {42,420,4200};
request.setAttribute("foo",nums);%>'
${requestScope['foo'][0] ne 10 div 0 }

My doubt is how is the value true?


Thanks in advance.
 
Aditya Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer operator precedence table,
http://www.informit.com/articles/article.aspx?p=30946&seqNum=4

It says Arithmatic operation hav priority over logical.
42 ne Infinity: So true.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic