lilypond-user
[Top][All Lists]
Advanced

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

Re: conditional when-property function not working as intended


From: Kieren MacMillan
Subject: Re: conditional when-property function not working as intended
Date: Fri, 16 Sep 2016 08:37:21 -0400

Hi David,

Thank you for the helpful reply and documentation/explanation.

> -- 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.

So how could I code the when-property function so that it is false when the KEY 
cannot be found?

Thank you,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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