Negates a Boolean value.
<?xml version="1.0" encoding="UTF-8"?> <RuleSet name="Example_not" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://www.curamsoftware.com/CreoleRulesSchema.xsd"> <Class name="Person"> <Attribute name="isLivingInUSA"> <type> <javaclass name="Boolean"/> </type> <derivation> <!-- Note that this not-within-not is somewhat contrived. --> <not> <reference attribute="isLivingOutsideUSA"/> </not> </derivation> </Attribute> <Attribute name="isLivingOutsideUSA"> <type> <javaclass name="Boolean"/> </type> <derivation> <not> <equals> <reference attribute="country"/> <String value="USA"/> </equals> </not> </derivation> </Attribute> <!-- The country in which this person resides. --> <Attribute name="country"> <type> <javaclass name="String"/> </type> <derivation> <specified/> </derivation> </Attribute> </Class> </RuleSet>