-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathboolean.xml
More file actions
executable file
·65 lines (44 loc) · 1.13 KB
/
boolean.xml
File metadata and controls
executable file
·65 lines (44 loc) · 1.13 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>boolean</name>
<category>Data</category>
<subcategory>Primitive</subcategory>
<usage>Web & Application</usage>
<example>
<image>boolean.png</image>
<code><![CDATA[
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><![CDATA[
Datatype for the Boolean values <b>true</b> and <b>false</b>. It is common to use <b>boolean</b> values with control statements to determine the flow of a program. The first time a variable is written, it must be declared with a statement expressing its datatype.
]]></description>
<syntax>
boolean <c>var</c>
boolean <c>var</c> = <c>booleanvalue</c>
</syntax>
<parameter>
<label>var</label>
<description><![CDATA[variable name referencing the value]]></description>
</parameter>
<parameter>
<label>booleanvalue</label>
<description><![CDATA[true or false]]></description>
</parameter>
<returns></returns>
<related>
true
false
</related>
<availability>1.0</availability>
<type>Datatype</type>
<partof>PDE</partof>
</root>