Exit | Case Of



Exit | Case Of
Smart pascal source code
procedure Test(s: String); begin case s of 't': begin WriteLn('here'); exit; end; 'r': ; else WriteLn('there'); exit; end; WriteLn('done'); end; Test('a'); Test('r'); Test('t'); { <<< CONSOLE OUTPUTS >>> there done here }