pxt-calliope/docs/reference/types/boolean.md

17 lines
530 B
Markdown
Raw Normal View History

2016-08-10 22:10:40 +02:00
# Boolean
true or false.
A Boolean has one of two possible values: `true`; `false`. Boolean (logical) operators (*and*, *or*, *not*) take Boolean inputs and yields a Boolean value. Comparison operators on other types ([numbers](/reference/types/number), [strings](/reference/types/string) yields a Boolean value.
The following blocks represent the true and false Boolean values, which can be plugged in anywhere a Boolean value is expected:
```blocks
true;
false;
```
### See Also
2016-10-23 08:04:08 +02:00
[boolean (blocks)](/blocks/logic/boolean)