Display a value in a confirm box

How would I get keyValue1 to display in the Confirm Box?

keyValue1 = event.source.parent.rowselector

if fpmi.gui.confirm(‘OK to Update Row of Data?’, ‘Confirm’):

If keyValue1 is a string:

if fpmi.gui.confirm('OK to Update Row %s of Data?' % keyValue1, 'Confirm'):

If keyValue1 is an integer:

if fpmi.gui.confirm('OK to Update Row %d of Data?' % keyValue1, 'Confirm'):