On Wed, Jun 8, 2016 at 9:43 AM, Jānis Erdmanis <[email protected]> wrote: > Hello everyone. > > Is it possible to tell if file is included another one? For example if I > have file > > #test1.jl > if (am I included in another file?) > > > println("Nothing to do") > > > else > > > println("Testing the functions ...") > > > end > and another one > #test2.jl > include("test1.jl") > I could be able to achieve: > julia test1.jl > Testing the functions ... > > julia test2.jl > Nothing to do
Basically, no. You can set a global variable in `test2` to be checked in `test1` though.
