|
|
On 8-4-2013 15:38, nimda wrote:
> IMHO the #for loop goes to the end value if reaches it e.g.:
> #for (I, 1, 10)
> #warning Str(I)
> #end
> will show all the numbers from 1 up to 10, but :
> #for (I, 1, 10, 2)
> #warning Str(I)
> #end
> will only show 1, 3, 5, 7, 9 because the 11 that follows is greater than 10.
Yes. However, in my code #for (Counter, 1, 10) with default step=1, the
Counter only shows the numbers 1 to 9...
I am sure I am missing something obvious here :-(
>
> On the other hand a #while (I<10) statement will only show the numbers up to 9
> because the symbol "<" means *strictly* smaller than. If you want 10 to show up
> you should use #while (I<=10).
Of course, but there lies not my problem.
Thomas
Post a reply to this message
|
|