Files
processing4/mobile/web/reference/API/logicalNOT.xml
2005-01-27 06:48:42 +00:00

61 lines
997 B
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>! (logical NOT)</name>
<category>Control</category>
<subcategory>Logical Operators</subcategory>
<usage>Web &amp; Application</usage>
<example>
<image>logicalNOT.gif</image>
<code>
boolean a = false;
if (!a) {
rect(30, 20, 50, 50);
}
a = true;
if (a) {
line(20, 10, 90, 80);
line(20, 80, 90, 10);
}
</code>
</example>
<description>
Inverts the Boolean value of an expression. Returns <b>true</b> if the expression is <b>false</b> and returns <b>false</b> if the expression is <b>true</b>. If the expression <b>(a>b)</b> evaluates to true, then <b>!(a>b)</b> evaluates to false.
</description>
<syntax>
!<c>expression</c>
</syntax>
<parameter>
<label>expression</label>
<description>any valid expression</description>
</parameter>
<returns></returns>
<related>
|| (logical OR)
&amp;&amp; (logical AND)
if()
</related>
<availability>1.0</availability>
<type>Operator</type>
<partof>PDE</partof>
</root>