> For the complete documentation index, see [llms.txt](https://tailieu.smax.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailieu.smax.ai/bot-auto/the-chuc-nang/the-nang-cao/input-output.md).

# Input/Output

{% hint style="info" %}
Thẻ <mark style="color:orange;">**Input/Output**</mark> được sử dụng để kiểm tra giá trị của thuộc tính đầu vào và gán giá trị tương ứng cho thuộc tính đầu ra
{% endhint %}

Ví dụ: Kiểm tra thuộc tính <mark style="color:purple;">**{{diem}}**</mark> của học sinh và gán thuộc tính <mark style="color:purple;">**{{phanloai}}**</mark> tương ứng

* Nếu <mark style="color:purple;">**{{diem}}**</mark> = 5 thì <mark style="color:purple;">**{{phanloai}}**</mark> là Kém
* Nếu <mark style="color:purple;">**{{diem}}**</mark> = 8 thì <mark style="color:purple;">**{{phanloai}}**</mark> là Khá
* Nếu <mark style="color:purple;">**{{diem}}**</mark> = 10 thì <mark style="color:purple;">**{{phanloai}}**</mark> là Giỏi

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2F2aYjiJjr8wRCrL51mO5B%2Fimage%201.png?alt=media&amp;token=1445ec78-5c05-4316-adf6-b92a1f169060" alt=""><figcaption></figcaption></figure>

Ngoài ra bạn có thể cài đặt Giá trị mặc định là khi <mark style="color:purple;">**{{diem}}**</mark> không bằng 1 trong 3 giá trị 5, 8, 10 thì <mark style="color:purple;">**{{phanloai}}**</mark> luôn là Trung bình

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FixG5swmwX3anEs6ZFzEG%2Fimage%201.png?alt=media&amp;token=4ae86b4e-07be-4337-8a84-58b38d8a0c24" alt=""><figcaption></figcaption></figure>
