Check at compile time if a unit exists

Viewed 259

I want to use a unit if it exists. Is there something like {$IF Declared(MyUnit)} for units, or a different way?

I installed a demo version of a component package, and would like to conditionally use units from it, and conditionally add menu items for testing its functionality. All without forcing everybody to install the demo package.

1 Answers
Related