# Các block

<table><thead><tr><th width="245">Tên block</th><th>Mô tả chức năng</th></tr></thead><tbody><tr><td>Sequentially</td><td>Block tuần tự, các hành động sẽ chạy từ trên xuống dưới</td></tr><tr><td>Loop (for)</td><td>Block lặp có giới hạn lần lặp, các hành động sau khi chạy hết sẽ tiếp tục được chạy lại cho tới khi đủ số lần được cài đặt</td></tr><tr><td>Loop (while)</td><td>Block lặp dừng theo điều kiện, các hành động được lặp đi lặp lại cho tới khi điều kiện dừng được thỏa mãn</td></tr><tr><td>Before profile started</td><td>Khối tuần tự chạy trước khi mở trình duyệt</td></tr><tr><td>If-Else</td><td>Block rẽ nhánh, nếu điều kiện đúng, thực khi khối "True", nếu sai, thực thi khối "Else"</td></tr></tbody></table>

**Điều kiện của vòng lặp while và rẽ nhánh**&#x20;

<table><thead><tr><th width="243">Điều kiện</th><th>Chức năng</th></tr></thead><tbody><tr><td>END_DATA</td><td>Điều kiện đọc hết file Excel</td></tr><tr><td>hasElement(XPATH)</td><td>Điều kiện xuất hiện một element</td></tr><tr><td>>=</td><td>Lớn hơn hoặc bằng, áp dụng cho kiểu dữ liệu là số</td></tr><tr><td>&#x3C;=</td><td>Nhỏ hơn hoặc bằng, áp dụng cho kiểu dữ liệu là số</td></tr><tr><td>></td><td>Lớn hơn, áp dụng cho kiểu dữ liệu là số</td></tr><tr><td>&#x3C;</td><td>Nhỏ hơn, áp dụng cho kiểu dữ liệu là số</td></tr><tr><td>like</td><td>Kiểm tra một chuỗi có chứa trong chuỗi khác.<br>Ví dụ: giaiphapmmo like giaiphapmmo.vn</td></tr></tbody></table>

**Video chi tiết**

<https://youtu.be/mfLT9FnHq4E>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gpmloginapp.com/none-code-automation/cac-block.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
