using try,except in mql5

 

I want to use try,except logic but can't seem to find an example anywhere.

How would I write the following in mql5?


try:

        #include <dependency.mqh>

except:

        Print('Could not load the dependency');
 
You don't, because it doesn't exist. If the include isn't there, it doesn't compile.
 

Thanks!

William Roeder:
You don't, because it doesn't exist. If the include isn't there, it doesn't compile.