tame/core/numeric/boolean.xml

22 lines
676 B
XML
Raw Normal View History

2015-03-18 11:31:47 -04:00
<?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">
2015-03-18 11:31:47 -04:00
<import package="../base" />
2015-03-18 11:31:47 -04:00
<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>
2015-03-18 11:31:47 -04:00
</function>
</package>