Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
hekate:cases:hekate_case_cashpoint:conceptualization [2009/10/28 09:38] kinio |
hekate:cases:hekate_case_cashpoint:conceptualization [2019/06/27 15:49] (current) |
* **if** //enteredPIN// = //correctPIN// **then** //authorized// := **true**; | * **if** //enteredPIN// = //correctPIN// **then** //authorized// := **true**; |
* **if** //enteredPIN// ≠ //correctPIN// **then** //authorized// := **false**; | * **if** //enteredPIN// ≠ //correctPIN// **then** //authorized// := **false**; |
The XTT method does not allow to direct comparison of two attributes within conditional part of a rule. So, you cannot create the rules presented above. If you want to compare the values of two attributes you have to introduce a third, supplementary attribute that will hold the value, which corresponds to the result of comparison. Then, depending on the value of this (supplementary) attribute, the further decisions can be taken. \\ | The XTT method does not allow to direct comparison between two attributes within conditional part of a rule. So, you cannot create the rules presented above. If you want to compare the values of two attributes you have to introduce a third, supplementary attribute that will hold the value, which corresponds to the result of the comparison. Then, depending on the value of this (supplementary) attribute, the further decisions can be taken. \\ |
**I.E.** According to rules presented above, we can introduce a new attribute //pidDifference//, which will hold the value of subtraction of the attributes //enteredPIN// and //correctPIN//. So, those two rules can replaced with: | **I.E.** According to rules presented above, we can introduce a new attribute //pidDifference//, which will hold the value of subtraction of the attributes //enteredPIN// and //correctPIN//. So, those two rules can replaced with: |
* **if** //enteredPIN// ≠ **null and** //correctPIN// ≠ **null then** //pidDifference// := //enteredPIN// - //correctPIN//; | * **if** //enteredPIN// ≠ **null and** //correctPIN// ≠ **null then** //pidDifference// := //enteredPIN// - //correctPIN//; |