Le vendredi 05 mai 2023 à 11:02 -0700, Eric Benson a écrit : > Would there be a way to conditionally include a \pageBreak at top level? E.g. > \if #(some-predicate) { \pageBreak }
Try ``` $(if (some-predicate) #{ \pageBreak #}) ``` Generally speaking, LilyPond doesn't reinvent the wheel through a full-fledged programming language of its own, but just reuses its host language, Scheme. Reading these pages might help: [https://extending-lilypond.gitlab.io/en/scheme/conditions.html#if-syntax](https://extending-lilypond.gitlab.io/en/scheme/conditions.html#if-syntax) [https://extending-lilypond.gitlab.io/en/extending/intro.html#inserting-scheme-inside-lilypond](https://extending-lilypond.gitlab.io/en/extending/intro.html#inserting-scheme-inside-lilypond) [https://extending-lilypond.gitlab.io/en/extending/lily-and-scheme.html](https://extending-lilypond.gitlab.io/en/extending/lily-and-scheme.html)
signature.asc
Description: This is a digitally signed message part