开发者

What does LE mean in the test-expression part of a for loop

Hi I'm very novice to coldfusion and I am trying to debug some cfscript logic. Ba开发者_Go百科sically I want to know what "le" means in the test-expression part of the for loop. I have looked through the coldfusion docs but can't find what it means. I am guessing it means less than or equals, but I believe that is denoted as LTE. Here's a sample of the code:

for (i = 1; i le length; i = i + 1)

Thanks in advance.


It is an alternate way of saying LTE. These are equivalent:

 LESS THAN OR EQUAL TO
 LTE
 LE

But for new code, I would use <= instead. It is more intuitive.

for (i = 1; i <= length; i++) {
   ... 
}  
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜