Advertisement
alphauser420

For loop

Mar 12th, 2024
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. For $i = 1 To 5 Step 1
  2. ConsoleWrite("Iteration " & $i & @CRLF)
  3. Next
  4.  
  5. ; Explanation:
  6. ; This For loop will iterate from 1 to 5 with a step size of 1.
  7. ; Inside the loop, ConsoleWrite is used to print the current iteration.
  8. ; @CRLF is a predefined constant that represents a new line.
  9. ;(The $ prefix is used when declaring a variable. In this example, $myVariable is assigned
  10. ;the string value "Hello, AutoIt!".)
  11. Local $myVariable = "Hello, AutoIt!"
  12. ConsoleWrite($myVariable)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement