On 2019-03-28 2:18 pm, Valentin Villenave wrote:
On 3/28/19, Pedro Pessoa <[email protected]> wrote:
I imagined something like:

%%% pseudo
#(define var
    (not (is-bound? var) 0))
%%%

I’d probably probably do something like

(null? (ly:parser-lookup 'var))

But I’m sure there are better ways :-)

;;;;
(if (not (defined? 'foo)) (define foo 47))
;;;;


-- Aaron Hill

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to