| Reference > Rule Languages > ILOG Rule Language > IRL Keywords > isunknown |
isunknown |
PREVIOUS NEXT |
Tests whether a class attribute has an initialized value. This keyword is used in any expression.
[?var:] className (?attribute isunknown);
The isunknown keyword can be used in the condition part or in the action part of a rule and in a function. It tests whether the attribute has a value.
In the case of the XML binding, an attribute has no value when:
In the case of Java classes, the test always returns false. That means that a Java attribute of a Java class is never considered uninitialized.
rule TestUnknownValue {
when {
?u: User(address isunknown);
}
then {
askForAddress(?u);
}
};
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |