Boolean

A value that can only be true or false.

In more detail

Comparisons, conditions and membership tests all produce Booleans. The name honours the mathematician George Boole.

Examples

The course's Bloom filter stores its bits as a Python list of booleans.
become: true, gather_facts: false and changed_when: false all take Booleans.
In YAML an unquoted false is a Boolean but a quoted "false" is text, which matters in when conditions.
A switch's checked state is a genuine Boolean; describing a component's look with many Boolean props leads to invalid combinations.
In the browser: Many options in this course are Booleans, such as passive, bubbles, cancelable and capture.
z.coerce.boolean() for an environment variable such as FEATURE_ENABLED
var enabled bool  // false
Java: the primitive boolean and its wrapper class Boolean; boolean active = true;
boolean active = true;
KafkaConsumer(enable_auto_commit=False)
OTLP keeps a boolean attribute as boolValue rather than turning it into a string.

Related terms

Taught in

References

Certification courses