IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/bool

You can read about the migration, and let us know what you think.

Extensions > API reference > bool

bool

A type to represent booleans. There are only two possible values: True and False. Any value can be converted to a boolean using the bool function.