> For the complete documentation index, see [llms.txt](https://tailieu.smax.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailieu.smax.bot/2.-gioi-thieu-cac-element-card/_2.7-set-attribute.md).

# \_2.7 Set Attribute

Set giá trị cho Attribute

![Vị trí thẻ set attribute (tìm kiếm hoặc chọn trong cột Facebook)](https://634492474-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ln1Gs55tBcLrVgnJ9tC%2F-MdGkhOJ2b4CkOKqbUuZ%2F-MdGoCB9pI2dbizklw-P%2Fimage.png?alt=media\&token=292f2315-f52c-4078-9987-9d0f346b55c6)

**Chức Năng**: Lưu 1 giá trị vào 1 Attribute cho khách hàng. Hành động này sẽ được hệ thống thực hiện ngầm mà không hiện ra cho khách hàng.

![VD thẻ set attribute](https://634492474-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ln1Gs55tBcLrVgnJ9tC%2F-MdGkhOJ2b4CkOKqbUuZ%2F-MdGrK_L9kNiyabrpHJv%2Fimage.png?alt=media\&token=feb07988-faf8-4bce-ac24-4b64e004c8c5)

### 1. Điều kiện lọc:&#x20;

Xem lại \_2.6 Go to Block (Mục 1: Điều kiện (Bộ lọc))

{% content-ref url="/pages/-Ln33L4jrA\_cUA\_h765C" %}
[\_2.8 Go to Block](/2.-gioi-thieu-cac-element-card/_2.8-go-to-block.md)
{% endcontent-ref %}

### 2. User Attribute

* Là tên attribute của khách hàng.
* Có thể tạo 1 attribute mới cho khách hàng hoặc set lại 1 attribute cũ của khách hàng đã có với một giá trị mới.
* Thêm các attribute bằng cách click Add Item.

### 3. Value

* Là giá trị được set cho attribute.
* Có thể lưu giá trị là text hoặc số.
* Có thể thực hiện các phép tính +; -; \*; / ( Cộng; Trừ ; Nhân; Chia ) trong phần Value để tính toán giá trị cho khách hàng.
* Ghép các attribute text lại với nhau bằng cách điền 2 attribute liền nhau.

**Lưu Ý**:&#x20;

* Chỉ thực hiện các phép tính +; -;  \*; / khi attribute đó có giá trị là số.&#x20;

![VD phép tính lưu vào Attribute](https://634492474-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ln1Gs55tBcLrVgnJ9tC%2F-LtJaZgsR3rtddSixFd4%2F-LtJsC2P4CywWNsuv__0%2FTyping%20mes.png?alt=media\&token=a596b37e-24ff-4cd4-b17f-007a3f94b893)

* Có thể sử dụng hàm trong phầm Value.

![VD sử dụng hàm \[=SEPRATOR(number)\] để in số tiền có dấu phẩy](https://634492474-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ln1Gs55tBcLrVgnJ9tC%2F-LtJaZgsR3rtddSixFd4%2F-LtJtGpyVFyeTnVGYtZd%2FTyping%20mes.png?alt=media\&token=01d50a91-0794-4613-8319-70724aa7cf0b)
