Fine. Something else.
If there is
Is number = 2999 or 3000 when the loop ends? What About REPEAT...UNTIL?Code:WHILE number < 3000 number = number + 1 WEND
Fine. Something else.
If there is
Is number = 2999 or 3000 when the loop ends? What About REPEAT...UNTIL?Code:WHILE number < 3000 number = number + 1 WEND
Code:WHILE number < 3000 number = number + 1 WENDIf you entered each above code sections with number < 3000, these two conditional loops would operate identically, and number would be incremented until number = 3000.Code:REPEAT number = number + 1 UNTIL number = 3000
BUT, if you entered with number > 2999 Then...
- The WHILE..WEND would not execute, and number would remain the same.
- The REPEAT..UNTIL loop would execute 1 time, and number would be incremented by 1.
HTH,
SteveB
Last edited by SteveB; - 7th September 2008 at 06:50. Reason: Amplifacation of first sentence.
Hi, Security
Just remember the "number" is checked at WHILE and UNTIL lines ( where you write the test ) and it bails out ( if test true ) just after.
Alain
Mikroelektronika manuals ( basic and C ) have a very nice explanation of that ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Hi,
Ok, well noted ...
Read you soon... new member.
Alain
Last edited by Acetronics2; - 8th September 2008 at 14:38.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks