22 lines
676 B
XML
22 lines
676 B
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<package xmlns="http://www.lovullo.com/rater"
|
|
xmlns:c="http://www.lovullo.com/calc"
|
|
core="true"
|
|
desc="Numeric computations dealing with boolean algebra">
|
|
|
|
<import package="../base" />
|
|
|
|
|
|
<function name="not" desc="Negates a boolean value" sym="\lnot">
|
|
<param name="not_value" type="boolean" desc="Boolean value to negate" />
|
|
|
|
<c:const value="1" type="boolean" desc="Value of 1 if given value is zero">
|
|
<c:when name="not_value">
|
|
<c:eq>
|
|
<c:const value="0" type="boolean" desc="Value to assert against for returning 1" />
|
|
</c:eq>
|
|
</c:when>
|
|
</c:const>
|
|
</function>
|
|
</package>
|