Code: Select all
%code result := iif(length('%xmp:dwc:Taxon.dwc:scientificName')>0, '%xmp:dwc:Taxon.dwc:scientificName'{encode=html}, iif(length('%xmp:dwc:Taxon.dwc:vernacularName')>0, '%xmp:dwc:Taxon.dwc:vernacularName'{encode=html}, '%xmp:photoshop:Headline'{encode=html})) %/code
my code gives the errorGranny's Cloak Moth
I cannot work out the correct way to handle strings containing inverted commas. Anyone know how to do this?Syntax error. Source position: 1,106