MCPcopy Index your code
hub / github.com/benfry/processing4 / parseBoolean

Method parseBoolean

core/src/processing/core/PApplet.java:8628–8630  ·  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

8626 * @return false if 0, true if any other number
8627 */
8628 static final public boolean parseBoolean(int what) {
8629 return (what != 0);
8630 }
8631
8632 /**
8633 * Convert the string "true" or "false" to a boolean.

Callers 3

getBooleanMethod · 0.80
getBooleanMethod · 0.80
setValueForMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected