This program does not compile because myvar is not defined.

\version "2.19.82"
test = #(cond
         ((= myvar 0) "zero")
         ((= myvar 1) "one")
          )

\markup \test


And this is the fixed version

\version "2.19.82"
myvar = 1
test = #(cond
         ((= myvar 0) "zero")
         ((= myvar 1) "one")
          )

\markup \test


The errors I get when I compile the wrong code are the following

C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-gtv7n2o_/tmpj0pm3z6i/document.ly:2:9
<0>: error: GUILE signaled an error for the expression beginning here

test = #

(cond


C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-gtv7n2o_/tmpj0pm3z6i/document.ly:7:9
<1>: error: not a markup

\markup

\test

For me these are not enough clear to understand the problem. Is there any
way to get a more precise indication of the error I did?

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

Reply via email to