In a simple piano book I'm using, one of the songs that has a first and second ending, has the notation in the bar for the first ending ("1."): "2nd time R.H. 8va".
How can there be a second time playing a first ending??
I scanned the sheet but can't figure out how to post the scan.