On Mon, Sep 08, 2014 at 11:14:34PM +0200, Gilles THIBAULT wrote: > > \version "2.18.2" > > file = #(let((myfile "test.ly")) > (if (file-exists? myfile) > myfile > "emptyfile.ly")) > > \include #file > > %%%%%%%%% > > which seems to works, but you need to create an empty file "emptyfile.ly" > somewhere in your PATH. > Alternatively, this seems also to work : > > ... > (if (file-exists? myfile) > myfile > "")) > > but you will get an advertisement for the \include ""
/dev/null works as an include filename, also, although it's probably rather more OS-specific than "emptyfile.ly". _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
