IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

get_defined_bool

get_defined_bool[name: StringSlice[StaticConstantOrigin], default: Bool = False]() -> Bool

Get a boolean-valued define. If the name is not defined, return a default value instead. If the name is defined this will return True if the value is ("1", "true", "True", "TRUE", "on", "On", "ON") otherwise it will return False.

Parameters:

Returns:

Bool: A boolean parameter value.