Re: conditional include

2014-10-18 Thread MarcM
if header_included = #t What function could i use? -- View this message in context: http://lilypond.1069038.n5.nabble.com/conditional-include-tp140471p167653.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list

Re: conditional include

2014-10-18 Thread Johan Vromans
MarcM m...@mouries.net writes: your function checks for arguments passed on the command line. Is there a way to check variable like an IFDEF ? HTH, Johan ifdefined.ly Description: Binary data ifthenelse.ly Description: Binary data ___

Re: conditional include

2014-10-18 Thread MarcM
? 'includeIfAbsent)) Unbound variable: define-public-toplevel https://code.google.com/p/lilypond/issues/detail?can=2start=0num=100q=colspec=ID%20Type%20Status%20Stars%20Owner%20Patch%20Needs%20Summarygroupby=sort=id=3267 -- View this message in context: http://lilypond.1069038.n5.nabble.com/conditional

Re: conditional include

2013-02-05 Thread Urs Liska
Hi Jan-Peter, thank you very much. This example function was actually accessible for me [other than a similar function in lalily, which is just that little amount more complex ...]. I tweaked it to my needs as can be seen in the attachment. It makes a decision depending on the presence of a

Re: conditional include

2013-02-05 Thread David Kastrup
Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. \version 2.16.0 includeIfExists =

Re: conditional include

2013-02-05 Thread Urs Liska
Am 05.02.2013 11:07, schrieb David Kastrup: Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. \version

Re: conditional include

2013-02-05 Thread Jan-Peter Voigt
Am 05.02.2013 11:07, schrieb David Kastrup: Jan-Peter Voigt jp.vo...@gmx.de writes: Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. \version

conditional include

2013-02-04 Thread Urs Liska
Hi list, I don't know if I _could_ find this info myself, but I'm quite puzzled about it and so I'd rather ask: I would like to \include files depending on the presence (or absence) of certain command-line options. Basically it should do something like: - if option A is present then

Re: conditional include

2013-02-04 Thread Jan-Peter Voigt
Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. Best, Jan-Peter On 04.02.2013 16:48, Urs Liska wrote: Hi list, I don't know if I _could_