true and false

There are two constants used to represent truth and falsity: true and false. false is defined as 0 (zero).
true is often said to be defined as 1, which is correct, but true has a wider definition: any integer which is non-zero is true, in a Boolean sense. So -1, 2 and -200 are all defined as true, too, in a Boolean sense.
Note that the true and false constants are typed in lowercase unlike HIGH, LOW, INPUT, and OUTPUT.


Reference Home

Corrections and documentation improvements are accepted via fork & pull-request on GitHub. Suggestions and feature requests are welcome to the Forum.

The text of the Z-Uno reference is based on Arduino Reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

×

Uploading the sketch to your Z-Uno:

Use this QR-code to include your device using Z-Wave Smart Start or triple click BTN button