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:
- name (
StringSlice[StaticConstantOrigin]): The name of the define. - default (
Bool): The default value to use.
Returns:
Bool: A boolean parameter value.