Repeat structure & playback question

From time to time I run across pieces that aren’t true repeats, as shown in the image. I created 1st/2nd endings then replaced the repeat sign with the double bar. How do I get something like this to playback correctly?
Slice 1

I guess you would have to change it to some kind of a D.S. structure and change the texts to fit your purpose.