-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathlogicalNOT.xml
More file actions
executable file
·73 lines (52 loc) · 1.19 KB
/
Copy pathlogicalNOT.xml
File metadata and controls
executable file
·73 lines (52 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?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.png</image>
<code><![CDATA[
boolean a = false;
if (!a) {
rect(30, 20, 50, 50);
}
if (a) {
line(20, 10, 90, 80);
line(20, 80, 90, 10);
}
]]></code>
</example>
<example>
<image>logicalNOT_2.png</image>
<code><![CDATA[
boolean a = true;
if (!a) {
rect(30, 20, 50, 50);
}
if (a) {
line(20, 10, 90, 80);
line(20, 80, 90, 10);
}
]]></code>
</example>
<description><![CDATA[
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><![CDATA[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>