lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Define variable only if it doesn't exist / is unbound


From: Pedro Pessoa
Subject: Define variable only if it doesn't exist / is unbound
Date: Thu, 28 Mar 2019 14:03:38 -0700 (MST)

Hello,
I want to init a variable only if it isn't bound. This seems a simple
matter, I was surpised I couldn't do it.
The thing is that it throws an 'unbound variable error' with anything I try.
I imagined something like:

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

Cheers,
Pedro Pessoa



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]