Is it possible to define more than one conditional in one {$IFDEF} directive ?
I would like to have syntax like this:
{$IFDEF Condition1 OR Condition2} DoSomething; {$ENDIF}
{$IFDEF Condition1 AND Condition2} DoSomethingElse; {$ENDIF}
Thanks
You would need to use $IF
instead:
{$IF Defined(Condition1) or Defined(Condition2)}
DoSomething;
{$IFEND}