For issue
Posted: Sun Apr 12, 2009 6:17 am
Hi,
In this simple for demo program:
The output is:
>C:\Cobra\Cobra.bat "ForIssue.cobra"
1
2
3
4
>Exit code: 0
Note, the upper limit, 5 in this case, is not printed..
In other words, the test seems to be <upper limit, not <=upper limit.
The behavior is the same when counting down (for I in 5 :-5 :-1)
Is it intended to be that way in Cobra?
Regards
Csaba
In this simple for demo program:
- Code: Select all
class ForIssue
def main is shared
for i in 1 : 5
print i
The output is:
>C:\Cobra\Cobra.bat "ForIssue.cobra"
1
2
3
4
>Exit code: 0
Note, the upper limit, 5 in this case, is not printed..
In other words, the test seems to be <upper limit, not <=upper limit.
The behavior is the same when counting down (for I in 5 :-5 :-1)
Is it intended to be that way in Cobra?
Regards
Csaba