break — Terminate loop execution or leave a switch block.
break( : : : )
break terminates the smallest enclosing for, while, or repeat..until loop. In addition, the break statement is used to leave a switch block, in particular at the end of a case branch. The program execution is continued at the program line following the corresponding block.
break statements that are not enclosed by a loop or switch 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 ObjectSelected := Regions[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).