|
Posted by robert on 04/28/06 22:25
| if the eval failed,
| the record was considered valid...truth meant the condition matched a
| non-violatable rule. in those cases, the description of the rule was
| displayed.
"eval" here not to be confused w/ eval(). in php, it was simply $var ==
$val...or in_array($var, $vals) or prefixed with ! where the negative effect
is warranted...e.x. !($var == $val) or, !(in_array($var, $vals). simply
using >= && <= suffices to cover a value falling within a certain range.
it's very quick, efficient, and simple.
this allowed us to handle not only record A, then B, then C...but to further
validate by certain aspects of A, B, or C. ex. record A is paint job which
requires B which stands for paint...C (powder coat) is only required when A
is a certain quality/price of a paint job and also only required when B is
red paint...does that make sense?
Navigation:
[Reply to this message]
|