{$IFDEF Condition1 OR Condition2} DoSomething; {$ENDIF} {$IFDEF Condition1 AND Condition2} DoSomethingElse; {$ENDIF}
谢谢
$IF
{$IF Defined(Condition1) or Defined(Condition2)} DoSomething; {$IFEND}