Text component dictated by values in excel procedure file not working

I quite often put x in a cell instead of blank and then have code like:

if spreadsheetImage == 'x':
     thisImage = 'transparent.png'
else:
    thisImage = spreadsheetImage

Reusing routines and components is good practice.