What is the difference between and ?

后端 未结 2 771
广开言路
广开言路 2021-02-05 02:04

I\'ve noticed usages of in one place of JSP code and in the other. The things they do look the same for me. Are the

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 02:22

    doesn't support any kind of "else" or "else if" functionality. does. So if you need something analogous to

    if (some_condition) {
        // ...
    }
    

    then use . If you need something analogous to

    if (some_condition) {
        // ...
    } else if (some_other_condition) {
        // ...
    } else {
        // ...
    }
    

    then use with and (optionally) .

提交回复
热议问题