Cpp.BreakStatement Class
Namespace: Cpp
Superclasses: AstNodeProperties
Represents the break_statement nodes in the syntax tree of your code
Since R2026a
Description
The PQL class Cpp.BreakStatement represents the node break_statement in the syntax tree of your code.
void test_break() {
for (int i = 0; i < 10; ++i) {
if (i == 5)
break;
}
}The break; statement in the example corresponds to the break_statement node and is what Cpp.BreakStatement models in PQL.
Predicates
Version History
Introduced in R2026a