The Input/Output card is used to check the value of an input attribute and assign a corresponding value to an output attribute.
Example: #
Check the attribute {{diem}} (score) of a student and assign the corresponding {{phanloai}} (classification):
- If
{{diem}} = 5, then{{phanloai}}is Kém (Poor). - If
{{diem}} = 8, then{{phanloai}}is Khá (Good). - If
{{diem}} = 10, then{{phanloai}}is Giỏi (Excellent).
Additionally, you can set a Default Value:
If {{diem}} does not equal 5, 8, or 10, then {{phanloai}} will always be Trung bình (Average).
