Advertisement
alphauser420

while

Mar 12th, 2024
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Local $counter = 1
  2. While $counter <= 5
  3. ConsoleWrite("Iteration " & $counter & @CRLF)
  4. $counter += 1
  5. WEnd
  6.  
  7. ConsoleWrite("While Loop Executed")
  8.  
  9. ; Explanation:
  10. ; This While loop will continue as long as the condition $counter <= 5 is true.
  11. ; Inside the loop, ConsoleWrite is used to print the current iteration, and $counter is incremented.
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement