Cho mình hỏi nếu có nhiều hơn 2 điều kiện logic, trong đó có cả AND và OR thì xử lý như nào? Ví dụ như : (Income>=1000000 and Children>0 and MaritalStatus=M and Gender=F) OR (Income>=3000000 and Children>0 and MaritalStatus=S and Gender=M)
Mình sẽ cần xác định và đóng mở ngoặc hợp lý là được.
Như trên thì công thức sẽ là OR(AND(AND(Income>=1000000, Children >0),AND(MaritalStutas=M,Gender=F)),AND(AND(Income>=300000,Children>0),AND(MaritalStatus=S,Gender=M).
Vì And hay Or thì cú pháp cũng chỉ có 2 logical_Test