2. If-Else and its TDM equivalent
Example rules using if-else
1. If Name = "Fred" and Age > 20 then Approve = true
2. If Name = "Bill" and Age < 10 then Approve = true
3. If Name = "Bob" and Age = 40 then Approve = true
4. If Name = "Chuck" then Approve = true
5. If Name = "Ted" then Approve = true
6. Otherwise Approve = false
Rules documented using TDM
Conditions Conclusion
Rule Name Age Approval Status
Pattern
1 is Fred is greater than 20 is Approved
1 is Bill is less than 10 is Approved
1 is Bob is 40 is Approved
2 is in {Chuck, Ted} is Approved
2 is not in {Fred, Bill, Bob, Chuck, Ted} is Not Approved
1 is Fred is less than or equal to 20 is Not Approved
1 is Bill is greater than or equal to 10 is Not Approved
1 is Bob is not 40 is Not Approved
2
(C) Visionalysis Ltd 2012 02/10/2012