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++) {
...
}
精彩评论