concepts.dm.pdsketch.predicate.split_simple_bool#
- split_simple_bool(expr, initial_negated=False)[source]#
If the expression is a simple Boolean expression (see
is_simple_bool()
), it returns the feature definition and a boolean indicating whether the expression is negated.- Parameters:
expr (Expression) – the expression to be checked.
initial_negated (bool, optional) – whether outer context of the feature expression is a negated function.
- Returns:
a tuple of the feature application and a boolean indicating whether the expression is negated. The first element is None if the feature is not a simple Boolean feature application.
- Return type:
Tuple[FunctionApplicationExpression | None, bool]