Application Development with Harbour/Control Structures
Loops
editWHILE
edit[DO] WHILE condition ... [LOOP] [EXIT] END[DO]
FOR
editFOR var := init_exp TO end_expr [STEP step_expr] ... [LOOP] [EXIT] NEXT
FOR EACH
editFOR EACH var IN collection_expr ... [HB_EnumIndex()] [LOOP] [EXIT] NEXT
IF
editIF condition ... [ELSEIF condition] ... [ELSE] ... END[IF]
SWITCH
editSWITCH condition CASE literal_expr ... [EXIT] [CASE literal_expr] ... [EXIT] [DEFAULT] ... END
BEGIN SEQUENCE
editBEGIN SEQUENCE ... [BREAK] [Break([expression])] [RECOVER [USING var]] ... END [SEQUENCE]