break — Terminate loop execution or leave a
break( : : : )
break terminates the smallest enclosing
In addition, the
break statement is used to leave a
block, in particular at the end of a
The program execution is continued at the program line following the
break statements that are not enclosed by a loop or
block are invalid.
read_image (Image, 'monkey') threshold (Image, Region, 160, 180) connection (Region, Regions) Number := |Regions| AllRegionsValid := 1 * check if for all regions area <=30 for i := 1 to Number by 1 select_obj (Regions, ObjectSelected, i) area_center (ObjectSelected, Area, Row, Column) if (Area > 30) AllRegionsValid := 0 break endif endfor
break (as an operator) always returns 2 (H_MSG_TRUE).