MCPcopy Index your code
hub / github.com/processing/processing / parseBoolean

Method parseBoolean

core/src/processing/core/PApplet.java:9406–9408  ·  view source on GitHub ↗

Convert an integer to a boolean. Because of how Java handles upgrading numbers, this will also cover byte and char (as they will upgrade to an int without any sort of explicit cast). The preprocessor will convert boolean(what) to parseBoolean(what). @return false if 0, true if any othe

(int what)

Source from the content-addressed store, hash-verified

9404 * @return false if 0, true if any other number
9405 */
9406 static final public boolean parseBoolean(int what) {
9407 return (what != 0);
9408 }
9409
9410 /*
9411 // removed because this makes no useful sense

Callers 3

getBooleanMethod · 0.80
getBooleanMethod · 0.80
setValueForMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected