Inspired by this topic, I wanted to obtain correct playback of the following structure using the smallest number of repeat markers:
Even though the To Coda marker uses the Custom text property to specify when the jump should occur, Dorico will perform the To Coda jump the first time it is encountered after a D.C. al Coda or D.S. al Coda, so the jump occurs during the third verse rather than the fourth. To prevent this, I changed the D.C. al Coda into a D.C. with Custom text to make it look like a D.C. al Coda.
To get the To Coda jump to occur during the fourth verse, it needs to become active at a later time during the third verse. The end of the third verse occurs during the second pass through bars 3 and 4. I added a D.S. and a Segno at the start of bar 4. Then I added a D.S. al Coda at a different rhythmic position and moved it to the start of bar 4. Finally, I selected the three repeat markers I just added and activated the Hide property.
During playback, the first time bar 4 is encountered the D.S. jumps to the Segno at the same place. The second time bar 4 is encountered during the third verse, the D.S. al Coda jumps to the same Segno, but also makes the To Coda active. Now when the To Coda is encountered during the fourth verse, the jump is taken.
Here is the project demonstrating the correct playback:
Controlling when a To Coda jump occurs.dorico (600.1 KB)