Kieren MacMillan <kieren_macmil...@sympatico.ca> writes: > Hello all, > > In the snippet included below, I’m hoping the second line of the > scoreTitleMarkup will take no vertical space. If you comment out that line, > you’ll see that it *does* take no space, but when it’s included, so is the > 25mm spacing that is [I thought] conditional on the presence of a ‘testB’ > property in the property. > > Where is my code going wrong? > More precisely, how can I make it work as intended? =) > > Thanks, > Kieren. > > %%%% SNIPPET BEGINS > \version "2.19.46" > > #(define-markup-command (when-property layout props symbol markp) (symbol? > markup?) > (if (chain-assoc-get layout props symbol markp) > (interpret-markup layout props markp) > empty-stencil))
-- Function: ly:chain-assoc-get key achain default-value strict-checking Return value for KEY from a list of alists ACHAIN. If no entry is found, return DEFAULT-VALUE or ‘#f’ if DEFAULT-VALUE is not specified. [...] DEFAULT-VALUE is specified as markp, and a markup is never #f. So your condition is always true when the specified KEY cannot be found. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user