Control flow / Conditional statements / switch/case statements

var
  InchSize: Integer;
  Text: string;
begin
  InchSize := 24;

  //case lists and ranges
  case InchSize of
    1415: Text := 'too small';
    16..18: Text := 'good for the past decade';
    19..23: Text := 'for office work';
    24..27: Text := 'great choice';
  else
    Text := '';
  end;
  //text is 'great choice'

  WriteLn('Monitor ', InchSize,
    '" is ', Text);
end.