forked from processing/processing-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnull.xml
More file actions
executable file
·49 lines (33 loc) · 1.06 KB
/
null.xml
File metadata and controls
executable file
·49 lines (33 loc) · 1.06 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>null</name>
<category>Structure</category>
<subcategory></subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
String content = "It is a beautiful day.";
String[] results; // Declare empty String array
results = match(content, "orange");
// The match statement above will fail to find
// the word "orange" in the String 'content', so
// it will return a null value to 'results'.
if (results == null) {
println("Value of 'results' is null."); // This line is printed
} else {
println("Value of 'results' is not null!"); // This line is not printed
}
]]></code>
</example>
<description><![CDATA[
Special value used to signify the target is not a valid data element. In Processing, you may run across the keyword <b>null</b> when trying to access data which is not there.
]]></description>
<syntax></syntax>
<returns></returns>
<related></related>
<availability>1.0</availability>
<type>keyword</type>
<partof>PDE</partof>
<level>extended</level>
</root>