This reference is for Processing 2.0+. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Javadoc.

Name

null

Examples
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
}
Description Special value used to signify the target is not a valid data element. In Processing, you may run across the keyword null when trying to access data which is not there.
Updated on May 19, 2014 05:30:05pm PDT

Creative Commons License