launch.conditions.if_condition module
Module for IfCondition class.
- class launch.conditions.if_condition.IfCondition[source]
Bases:
ConditionEncapsulates an if condition to be evaluated when launching.
This condition takes a string expression that is lexically evaluated as a boolean, but the expression may consist of
launch.Substitutioninstances.See
evaluate_condition_expression()to understand what constitutes a valid condition expression.- __init__(predicate_expression: str | Path | Substitution | Iterable[str | Path | Substitution]) None[source]