I'm setting up an export in power automate for users (will run from canvas app) and in one of the fields I ideally would like to show them a text value instead of the number that is in the field. The number relates either to a customer type and the text value is not contained in the table anywhere. Can I hardcode this into Automate with an IF statement or something? I've tried a few things but keep getting the 'statement is invalid'!
eg: the field 'Category Code' - CMTYPE has a value of 0-5. In my canvas app I use the following formula to display the text the user is expecting:
If(ThisItem.CMTYPE="0","Corporate",If(ThisItem.CMTYPE="1","Green Grass",If(ThisItem.CMTYPE="2","Off Course",If(ThisItem.CMTYPE="E","International",If(ThisItem.CMTYPE="3","Sporting Goods",If(ThisItem.CMTYPE="4","Driving Range",If(ThisItem.CMTYPE="5","Other",ThisItem.CMTYPE)))))))

Appreciate any help.