Skip to content

Bool

Represents a single scalar boolean value. This datatype is used as input or output wherever a binary flag or condition is required in the Telekinesis ecosystem.

Field

Required

FieldTypeDescription
valueboolThe boolean value; Python built-in type bool.

Optional

None.

Example

From the datatypes examples:

python
from datatypes import datatypes
from loguru import logger

# ------------------------------------------------
# 1. Create Bool instance
# ------------------------------------------------
bool_val = datatypes.Bool(True)

# ------------------------------------------------
# 2. Access value
# ------------------------------------------------
logger.info("Bool value={}", bool_val.value)