Qbasicnews.com

Full Version: while loop and do loop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
im having trouble with integrating a while loop into one of my do loops, is there any way to fix this?
What do you mean by integrate?

Like this?
Code:
DO
   WHILE b
      ...
   WEND
LOOP UNTIL a
posting some code will give us a clue =P We arent telepathic problem solvers :roll:
Code:
Do While a = b
Loop
Code:
Do Until a = b
Loop
Code:
Do
Loop While a = b
Code:
Do
Loop Until a = b
Code:
While a = b
Wend

That about covers it...

The = sign can be replaced with: <=, >=, <>, < or >

You can add multiple conditions using: AND, OR or any other bit operator (XOR for example)