[Original]java Web Learning note 39:el (arithmetic operator, relational operator, logical operator, empty operator, conditional operator, bracket operator)

Source: Internet
Author: User
Tags arithmetic arithmetic operators

this blog is original: Integrated still Silicon Valley (http://www.atguigu.com) System tutorial (deep thank) and network of existing resources (blogs, documents, books, etc.), the source of resources I will mark

The purpose of this blog: ① summary of their own learning process, equivalent to study notes ② to share their own experience to everyone, learn from each other, communication, not commercial

content inevitably appear problems, welcome to correct, exchange, discussion, you can leave a message, can also be contacted by the following ways.

I Internet technology enthusiasts, Internet technology enthusiasts

Weibo: Ivan is in 0221


--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- -----------------------------

Arithmetic operators, relational operators, logical operators, empty operators, conditional operators, parentheses operators

1. Arithmetic Operations (5)



2. Relational operators (6)



When using the EL relational operator, it cannot be written as:

${param.password1} = = ${param.password2}


${${param.password1} = = ${Param.password2}}

and should be written

${Param.password1 = = Param.password2}

3. Logic operations (3)



4. Other

4.1 Empty operator

The ①empty operator is used primarily to determine whether a value is null or empty. In addition to variables, the operator can also act on the collection, if the collection does not exist or if there are no elements in the collection, the result is true

${Empty Param.name}

{Empty} A

4.2 Bar Operators

${A? B:C} means that when a is true, B is executed and A is false, C is executed

4.3 Parenthesis operator

1) The parentheses operator is primarily used to change the execution priority

(from high to low, from left to right)



[Original]java in Web Learning note 39:el (arithmetic operator, relational operator, logical operator, empty operator, conditional operator, bracket operator)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.