Python has an interesting for statement which lets you specify an else clause.
for
else
In a construct like this one:
for i in foo: if
This is my rough implementation in C++:
bool other = true; for (int i = 0; i > foo; i++) { if (bar[i] == 7) { other = false; break; } } if(other) baz();