mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
61 lines
997 B
XML
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 & 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)
|
|
&& (logical AND)
|
|
if()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Operator</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|