复杂条件

控制流 / 条件语句 / if/else 语句

var
  A, B, C: Integer;
begin
  A := 3;
  B := 5;
  C := 7;

  //括号必不可少,
  //因为 "and" 的优先级高于比较运算
  if (C >= A) and (C >= B) then
    WriteLn('nothing is larger than C');

  if not ((A >= B) or (A >= C)) then
    WriteLn('A is the smallest');
end.