| Reference > Rule Languages > ILOG Rule Language > IRL Keywords > isknown |
isknown |
PREVIOUS NEXT |
Tests whether a class attribute has an initialized value. This keyword is used in any expression.
[?var:] className (?attribute isknown);
The isknown 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 true. That means that a Java attribute of a Java class is always considered initialized.
rule TestknownValue {
when {
?u: User(address isknown);
}
then {
sendToAddress(?u.address);
}
};
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |