Morning Steve,

On 23/02/12 20:56, Stephen Usher wrote:
I've put a PDF of my current thoughts about syntax on my web site:

Quick question. FOR lops. I read that "If the TO or UNTIL expression evaluates to zero at the time of loop entry the commands within the loop do not get run." which makes me think that the following is a non-loop:

FOR x = 10 TO 0 STEP -1 .... NEXT x

I think it should read "If the WHILE expression evaluates to zero, or the current value is equal to the TO value, on entry ...".


Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL

Company Number: 05132767
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to