This macro can be used to break out of .foreach loops.
.set_value(_hasMain, false, new) .foreach_item(Operations) .if (%Code% == main) .set_value(_hasMain, true) .break .endif .next %_hasMain%