🇻🇳
GPM Automate VI
  • NO-CODE AUTOMATION
    • Một số biến mặc định
    • Các block
      • Normal block
      • For
      • While
      • If
      • Else if
      • Else
    • Variables
      • Set variable
      • Increase variable
      • Decrease variable
      • Count
    • Workflow
      • Exit loop
      • Next loop
      • Delay
    • Text & number
      • Random text
      • Split text
      • Read json
      • Random number
      • Math execute
      • 2FA code
  • File & Folder
    • File exists
    • Copy file
    • Move/rename file
    • Delete file
    • File read all text
    • File read all lines
    • File write all text
    • File append line
    • Read excel file
    • Write excel file
    • Append excel file
    • Folder exists
    • Create folder
    • Move / rename folder
    • Delete folder
    • Folder get file list
  • Clipboard
    • Get clipboard text
    • Set clipboard text
  • HTTP
    • HTTP Request
    • HTTP Download
  • Image Search
    • Wait to image
    • Image exists
    • Image search
    • Ví dụ kết hợp
  • AI
    • ChatGPT
  • Mail
    • Read mail code
    • Read outlook (Oauth2)
  • Navigation
    • New tab
    • Active tab
    • Close tab
    • Go to URL
    • Back URL
    • Reload
    • Get URL
    • Wait URL Changed
  • Element
    • Wait element
    • Get element attribute
    • Get element text
    • Count element
  • Mouse
    • Mouse click
    • Mouse try to click
    • Mouse move
    • Mouse press and hold
    • Mouse release
    • Mouse scroll
  • Keyboard
    • Key press
    • File upload
    • Select dropdown
  • Scroll
    • Random scroll
    • Scroll to top
    • Scroll to bottom
    • Scroll to element
  • Switch
    • Switch to default
    • Switch to frame
    • Switch to popup
  • Cookie
    • Import cookie
    • Export cookie
  • Alert
    • Accept alert
    • Cancel alert
  • Javascript
    • Execute JS code
    • Get extension id
  • References
    • Call function
  • Google service
    • Read google sheet
    • Write google sheet
Powered by GitBook
On this page
  1. NO-CODE AUTOMATION
  2. Các block

For

Block lặp, dùng để lặp đi lặp lại 1 khối code, có giới hạn số lần lặp.

PreviousNormal blockNextWhile

Last updated 1 month ago

Các tham số trong vòng lặp For

Tham số
Giải thích

$loopIndex

$loopIndex theo dõi số lần lặp trong một vòng lặp, giúp xác định và truy cập từng phần tử trong danh sách hoặc mảng

Start

Giá trị bắt đầu của biến lặp $loopIndex

End

Giá trị kết thúc của biến lặp $loopIndex là End-1

Increase by

Bước nhảy của biến lặp $loopIndex

Ví dụ: Kết hợp For để đọc file Input Excel. Giả sử bạn cần đọc dữ liệu tất cả dữ liệu từ cột B từ 1 file excel tên là test. Dùng biến $inputExcelTotalRows kết hợp với For.

Input Excel
For
Set variable